fish: open many files

This commit is contained in:
lelgenio 2021-12-07 20:50:27 -03:00
parent 8a413ee398
commit 953c4ac318
1 changed files with 4 additions and 2 deletions

View File

@ -140,7 +140,9 @@ end
################################################################
function open -w xdg-open
xdg-open $argv &> /dev/null & disown
for i in $argv
xdg-open $i &> /dev/null & disown
end
end
@ -198,7 +200,7 @@ end
function edit-config
pushd (dirname "$DOTDROP_CONFIG")
set -l dotfile (fd -HE .git | wdmenu)
set -l dotfile (fd --strip-cwd-prefix -HE .git | wdmenu)
test -n "$dotfile" || return 1
{{@@ editor @@}} "$dotfile"
popd