diff --git a/modules/global/shell.nix b/modules/global/shell.nix index 166ba63..c3c5c5a 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -96,9 +96,9 @@ in universe.packages = [ (pkgs.writeScriptBin "editi" '' if [[ $# -eq 0 ]] then - $EDITOR "$(fd -H -t f | fzf --filepath-word --multi)" + fd -H -t f | fzf --filepath-word --multi | xargs $EDITOR else - $EDITOR "$(fd -H -t f | fzf --filepath-word --multi -1 -q "$*")" + fd -H -t f | fzf --filepath-word --multi -1 -q "$*" | xargs $EDITOR fi '') ]; diff --git a/users/modules/global/git.nix b/users/modules/global/git.nix index c6fdde7..6befbe7 100644 --- a/users/modules/global/git.nix +++ b/users/modules/global/git.nix @@ -20,9 +20,9 @@ echo "Not in a git repository" exit 1 elif [[ $# -eq 0 ]] then - $EDITOR "$(git ls-files | fzf --filepath-word --multi)" + git ls-files | fzf --filepath-word --multi | xargs $EDITOR else - $EDITOR "$(git ls-files | fzf --filepath-word --multi -1 -q "$*")" + git ls-files | fzf --filepath-word --multi -1 -q "$*" | xargs $EDITOR fi '') ];