diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2020-10-22 06:00:39 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2020-10-22 06:00:39 -0400 |
commit | 354923f337c17127503dcbd209d090d978e0ecff (patch) | |
tree | a0f1411832cdee22bb934192765e77404e0f1ffc /zsh | |
parent | 7cfd18ea5b00c316d23706d5a42b54705105fbf2 (diff) |
Add zoxide and fzf configs
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -30,10 +30,30 @@ prompt pure alias ls="ls --color" +(( $+commands[exa] )) && alias ls="exa" +(( $+commands[bat] )) && alias cat="bat" +# if (( $+commands[most] )); then +# alias less="most" +# export PAGER="most" +# fi +if (( $+commands[fzf] )); then + if (( $+commands[fzf-share] )); then + # Nixos + source "$(fzf-share)/completion.zsh" + source "$(fzf-share)/key-bindings.zsh" + else + echo "Configure fzf!" + fi +fi + +if (( $+commands[zoxide] )); then + eval "$(zoxide init zsh)" +fi + source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh if [[ ! -f ~/.zsh/fast-syntax-highlighting/current_theme.zsh ]]; then fpath+=$HOME/.zsh/fast-syntax-highlighting fast-theme clean fi -[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local +source ~/.zshrc.local |