mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 23:04:22 +00:00
Allow multiple users
This commit is contained in:
parent
05f466b1e7
commit
032c04ef08
1 changed files with 41 additions and 41 deletions
|
@ -1,10 +1,9 @@
|
||||||
function dotfish
|
function dotfish
|
||||||
if test (count $argv) -ge 1
|
if test (count $argv) -eq 0
|
||||||
set -g TARGET $argv[1]
|
set -g argv (whoami)
|
||||||
else
|
|
||||||
set -g TARGET (whoami)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for TARGET in $argv
|
||||||
echo_progress "Updating fish config for: "
|
echo_progress "Updating fish config for: "
|
||||||
echo_highlight "$TARGET" \n
|
echo_highlight "$TARGET" \n
|
||||||
|
|
||||||
|
@ -45,4 +44,5 @@ function dotfish
|
||||||
chsh -s "/usr/bin/fish" "$TARGET"
|
chsh -s "/usr/bin/fish" "$TARGET"
|
||||||
|
|
||||||
echo_progress "Update complete!" \n
|
echo_progress "Update complete!" \n
|
||||||
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue