global/shell: make editi universal and add edit aliases
This commit is contained in:
parent
826e5e8ef5
commit
ca5ff9918a
2 changed files with 12 additions and 8 deletions
|
@ -48,14 +48,6 @@
|
|||
|
||||
alias "jh"="cd ~ && j"
|
||||
alias "gj"="gcd && j"
|
||||
|
||||
editi() {
|
||||
if [[ $# -eq 0 ]] then
|
||||
edit "$(fd -H -t f | fzf)"
|
||||
else
|
||||
edit "$(fd -H -t f | fzf -1 -q "$*")"
|
||||
fi
|
||||
}
|
||||
'';
|
||||
|
||||
dotDir = ".config/zsh";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue