fish: use a function for getting autoexec dirs
parent
f0d18e3d1b
commit
414e67347c
|
@ -31,11 +31,14 @@ if test -f ~/.cargo/env
|
||||||
source ~/.cargo/env
|
source ~/.cargo/env
|
||||||
end
|
end
|
||||||
|
|
||||||
for f in (test -d $_agw_dir_local/fish &&
|
function _agw_get_autoexec -d "Function for bootstrapping. Finds auto-execs."
|
||||||
find $_agw_dir_local/fish -type f |
|
if test -d $argv[1]
|
||||||
env LC_ALL=C sort) \
|
find $argv[1] -type f | env LC_ALL=C sort
|
||||||
(find $_agw_dir_rc/fish -type f |
|
end
|
||||||
env LC_ALL=C sort)
|
end
|
||||||
|
|
||||||
|
for f in (_agw_get_autoexec $_agw_dir_local/fish) \
|
||||||
|
(_agw_get_autoexec $_agw_dir_rc/fish)
|
||||||
source $f
|
source $f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue