From 354923f337c17127503dcbd209d090d978e0ecff Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 22 Oct 2020 06:00:39 -0400 Subject: Add zoxide and fzf configs --- zsh/.zshrc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index cb0a9da..f8d6f65 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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 -- cgit v1.2.3