Added sudo function
This commit is contained in:
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
|
||||
#
|
||||
# v1.1 - Added sudo function
|
||||
|
||||
# Install some programs
|
||||
echo "## Installing programs"
|
||||
@@ -12,6 +14,7 @@ sudo nala install exa fish neofetch -y
|
||||
echo "## Downloading configs"
|
||||
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/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/st_combadge.ascii https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/st_combadge.ascii
|
||||
|
||||
|
||||
Reference in New Issue
Block a user