zsh: add ef() (edit file)

This commit is contained in:
PowerUser64 2021-11-25 04:29:51 -08:00
parent 560946ecad
commit e048d023a5

6
.zshrc
View file

@ -224,6 +224,12 @@
done 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 # toggles whether a file or group of files is executable
chx() { chx() {
for FILE in "$@";do for FILE in "$@";do