Move the Module to modules/fish/fish.nix and mirror a real fish config directory beside it: config.fish (interactive init), conf.d/done.fish (the done plugin tuning, now a real conf.d file), and functions/copy.fish. completions/ and themes/ are omitted as they have no content and git cannot track empty directories.
9 lines
209 B
Fish
9 lines
209 B
Fish
set count (count $argv | tr -d \n)
|
|
if test "$count" = 2; and test -d "$argv[1]"
|
|
set from (echo $argv[1] | trim-right /)
|
|
set to (echo $argv[2])
|
|
command cp -r $from $to
|
|
else
|
|
command cp $argv
|
|
end
|