1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 14:54:23 +00:00

Allow multiple users

This commit is contained in:
Steffo 2021-07-15 03:04:22 +02:00
parent 05f466b1e7
commit 032c04ef08
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,10 +1,9 @@
function dotfish
if test (count $argv) -ge 1
set -g TARGET $argv[1]
else
set -g TARGET (whoami)
if test (count $argv) -eq 0
set -g argv (whoami)
end
for TARGET in $argv
echo_progress "Updating fish config for: "
echo_highlight "$TARGET" \n
@ -45,4 +44,5 @@ function dotfish
chsh -s "/usr/bin/fish" "$TARGET"
echo_progress "Update complete!" \n
end
end