Skip to content

Commit

Permalink
selecta file find in zsh uses fd, not find
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Apr 25, 2020
1 parent 1ff7b2e commit c8ebe54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function insert-selecta-path-in-command-line() {
# Print a newline or we'll clobber the old prompt.
echo
# Find the path; abort if the user doesn't select anything.
selected_path=$(find * -type f -or -type d | egrep -v '\bnode_modules\b' | selecta) || return
selected_path=$(fd -t f . | selecta) || return
# Escape the selected path, since we're inserting it into a command line.
# E.g., spaces would cause it to be multiple arguments instead of a single
# path argument.
Expand Down

0 comments on commit c8ebe54

Please sign in to comment.