diff --git a/users/modules/global/shells/zsh.nix b/users/modules/global/shells/zsh.nix index 42161b2..f19768d 100644 --- a/users/modules/global/shells/zsh.nix +++ b/users/modules/global/shells/zsh.nix @@ -47,6 +47,14 @@ } alias "jh"="cd ~ && 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";