1
Fork 0
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:
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 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
@ -46,3 +45,4 @@ function dotfish
echo_progress "Update complete!" \n echo_progress "Update complete!" \n
end end
end