From 9fbfd35ed6e200bcc529847b6ad9c1f96f12aa4a Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 4 Jun 2024 17:10:16 -0500 Subject: fix(zsh): tweaking aliases / shortcuts --- dot_zshrc.tmpl | 10 +++++++--- 1 file 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 -- cgit v1.2.3