From e7e2f48cdf72de5f4e5f413adfa586e745023fb9 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sat, 1 Jun 2024 13:29:56 +0200 Subject: [PATCH] Only add locally build nvim to path if we have built it, also, move custom keybindings to the end of the file so they dont get overriden by other stuff --- home/.zshrc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index dd48707..8b9ffba 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -4,7 +4,9 @@ if [[ "$(uname)" == "Darwin" ]]; then fi # Paths -export PATH=$HOME/.local/nvim/bin:$PATH # Nightly neovim +if [[ -d $HOME/.local/nvim ]]; then + export PATH=$HOME/.local/nvim/bin:$PATH # Nightly neovim +fi # Set the directory we want to store zinit and plugins ZINIT_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/zinit/zinit.git" @@ -63,12 +65,6 @@ setopt hist_ignore_dups setopt hist_save_no_dups setopt hist_find_no_dups -# Keybindings -bindkey '^p' history-search-backward -bindkey '^n' history-search-forward -bindkey '^[[A' history-search-backward -bindkey '^[[B' history-search-forward - # Completion styling zstyle ':completion:*' matcher-list 'm:{z-z}={A-Za-z}' zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" @@ -121,3 +117,9 @@ fi fastfetch +# Keybindings +bindkey '^p' history-search-backward +bindkey '^n' history-search-forward +bindkey '^[[A' history-search-backward +bindkey '^[[B' history-search-forward +