diff --git a/modules/global/shell.nix b/modules/global/shell.nix index 676d03b..208a2b1 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -103,9 +103,9 @@ in universe.packages = [ (pkgs.writeScriptBin "editi" '' if [[ $# -eq 0 ]] then - fd -H -t f | fzf --filepath-word --multi | xargs $EDITOR + fd -H -t f | fzf --filepath-word --multi | xargs -r $EDITOR else - fd -H -t f | fzf --filepath-word --multi -1 -q "$*" | xargs $EDITOR + fd -H -t f | fzf --filepath-word --multi -1 -q "$*" | xargs -r $EDITOR fi '') ]; diff --git a/users/modules/global/git.nix b/users/modules/global/git.nix index d770f98..df528a1 100644 --- a/users/modules/global/git.nix +++ b/users/modules/global/git.nix @@ -22,9 +22,9 @@ echo "Not in a git repository" exit 1 elif [[ $# -eq 0 ]] then - git ls-files | fzf --filepath-word --multi | xargs $EDITOR + git ls-files | fzf --filepath-word --multi | xargs -r $EDITOR else - git ls-files | fzf --filepath-word --multi -1 -q "$*" | xargs $EDITOR + git ls-files | fzf --filepath-word --multi -1 -q "$*" | xargs -r $EDITOR fi '') ];