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:
parent
05f466b1e7
commit
032c04ef08
1 changed files with 41 additions and 41 deletions
|
@ -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
|
||||
|
||||
|
@ -46,3 +45,4 @@ function dotfish
|
|||
|
||||
echo_progress "Update complete!" \n
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue