diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2024-06-04 17:10:16 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | 9fbfd35ed6e200bcc529847b6ad9c1f96f12aa4a (patch) | |
| tree | 9896e4d5aa1534ba9f7cb74136d909519e1e8a76 /dot_zshrc.tmpl | |
| parent | a50959e31db399713e94241c1f6436d1c2210426 (diff) | |
fix(zsh): tweaking aliases / shortcuts
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 |
