diff --git a/.zshrc b/.zshrc index 8b30892..84134b9 100644 --- a/.zshrc +++ b/.zshrc @@ -224,6 +224,12 @@ done } + # edit file: Uses fzy to locate a file, and opens it in your favorite text editor + # Takes arguments for `fd` + ef() { + "$EDITOR" "$(fd $@ | fzy)" + } + # toggles whether a file or group of files is executable chx() { for FILE in "$@";do