diff options
Diffstat (limited to 'dot_zshrc.tmpl')
| -rw-r--r-- | dot_zshrc.tmpl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 7cdaf30..5c67436 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -76,7 +76,7 @@ bindkey -s '^o' 'lfcd\n' bindkey -s '^a' 'bc -lq\n' -bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n' +bindkey -s '^f' '$(eval find $HOME/.config $HOME/code $HOME/.local/share -mindepth 1 -maxdepth 1 | fzf)\n' bindkey '^[[P' delete-char @@ -84,10 +84,8 @@ bindkey '^[[P' delete-char autoload edit-command-line; zle -N edit-command-line bindkey '^e' edit-command-line - ### ALIASES ### - # Use neovim for vim if present. [ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" @@ -124,6 +122,12 @@ alias l.='exa -a | egrep "^\."' # Kill Kodi with one command alias killkodi="kill -9 `ps aux | grep '/usr/lib/x86_64-linux-gnu/kodi/kodi.bin' -m 1 | tr -s ' ' | cut -d ' ' -f 2`" +# Edit a file with Chezmoi and apply it immediately +alias dotedit='chezmoi edit --apply' + +# Shortcut for sourcing this file +alias zource='source $HOME/.zshrc' + # Source the zprofile source $HOME/.zprofile |
