Compare commits
2 Commits
2de320dd68
...
a6f3f8385e
| Author | SHA1 | Date | |
|---|---|---|---|
| a6f3f8385e | |||
| c45030a841 |
8
functions/sudo.fish
Normal file
8
functions/sudo.fish
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
function sudo -d "sudo wrapper that handles aliases"
|
||||||
|
if functions -q -- $argv[1]
|
||||||
|
set -l new_args (string join ' ' -- (string escape -- $argv))
|
||||||
|
set argv fish -c "$new_args"
|
||||||
|
end
|
||||||
|
|
||||||
|
command sudo $argv
|
||||||
|
end
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# v1.1 - Added sudo function
|
||||||
|
|
||||||
# Install some programs
|
# Install some programs
|
||||||
echo "## Installing programs"
|
echo "## Installing programs"
|
||||||
@@ -12,6 +14,7 @@ sudo nala install exa fish neofetch -y
|
|||||||
echo "## Downloading configs"
|
echo "## Downloading configs"
|
||||||
sleep 1
|
sleep 1
|
||||||
wget -q -O /tmp/zx_customconfig.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/zx_customconfig.fish
|
wget -q -O /tmp/zx_customconfig.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/zx_customconfig.fish
|
||||||
|
wget -q -O /tmp/sudo.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/functions/sudo.fish
|
||||||
wget -q -O /tmp/config.conf https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/config.conf
|
wget -q -O /tmp/config.conf https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/config.conf
|
||||||
wget -q -O /tmp/st_combadge.ascii https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/st_combadge.ascii
|
wget -q -O /tmp/st_combadge.ascii https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/st_combadge.ascii
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user