zsh: add ef() (edit file)
This commit is contained in:
parent
560946ecad
commit
e048d023a5
1 changed files with 6 additions and 0 deletions
6
.zshrc
6
.zshrc
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue