diff options
-rw-r--r-- | nix-home-config/my-env.nix | 2 | ||||
-rwxr-xr-x | setup.sh | 1 | ||||
-rw-r--r-- | zsh/.zshrc | 22 |
3 files changed, 24 insertions, 1 deletions
diff --git a/nix-home-config/my-env.nix b/nix-home-config/my-env.nix index 62211a6..73ed0e7 100644 --- a/nix-home-config/my-env.nix +++ b/nix-home-config/my-env.nix @@ -38,6 +38,8 @@ exa fzf zoxide + bat + most ripgrep coreutils @@ -8,6 +8,7 @@ git submodule update --init --recursive $STOW common $STOW zsh +touch $HOME/.zshrc.local source $HOME/.zshenv if which xmonad >/dev/null; then @@ -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 |