commit e2eb3ebb817a09c29cfcaf617e2f68381548fc32
parent b5b8136accc047fd65e85db3e100e7ed5f52e8e1
Author: oscarbenedito <oscar@obenedito.org>
Date:   Fri, 14 Feb 2020 10:23:49 +0100

Fix for Arch zsh plugins

Diffstat:
Ddot_zshrc | 40----------------------------------------
Adot_zshrc.tmpl | 44++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 40 deletions(-)

diff --git a/dot_zshrc b/dot_zshrc @@ -1,40 +0,0 @@ -# Load colors and set up prompt -autoload -U colors && colors -PS1="%B%{$fg[magenta]%}%n%{$fg[blue]%}@%{$fg[green]%}%M %{$fg[yellow]%}%~%b%{$fg[red]%}$%{$reset_color%} " - -# Set up history and history file -HISTSIZE=1000 -SAVEHIST=1000 -HISTFILE=~/.zsh_history - -setopt HIST_IGNORE_DUPS -setopt HIST_FIND_NO_DUPS - -# Set up navigation menu when pressing tab multiple times -autoload -U compinit -zstyle ':completion:*' menu select -zmodload zsh/complist -compinit -#_comp_options+=(globdots) - -# Auto complete case insensitive -zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' - -# Set up vim style keys -bindkey -v -export KEYTIMEOUT=1 -bindkey "^?" backward-delete-char - -# Also set vim keys to navigate the menus when double pressing tab -bindkey -M menuselect 'h' vi-backward-char -bindkey -M menuselect 'k' vi-up-line-or-history -bindkey -M menuselect 'l' vi-forward-char -bindkey -M menuselect 'j' vi-down-line-or-history - -# Process the alias file -if [ -f "$HOME/.aliases" ]; then - source "$HOME/.aliases" -fi - -# Include the highlighting plug-in -source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2> /dev/null diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl @@ -0,0 +1,44 @@ +# Load colors and set up prompt +autoload -U colors && colors +PS1="%B%{$fg[magenta]%}%n%{$fg[blue]%}@%{$fg[green]%}%M %{$fg[yellow]%}%~%b%{$fg[red]%}$%{$reset_color%} " + +# Set up history and history file +HISTSIZE=1000 +SAVEHIST=1000 +HISTFILE=~/.zsh_history + +setopt HIST_IGNORE_DUPS +setopt HIST_FIND_NO_DUPS + +# Set up navigation menu when pressing tab multiple times +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +#_comp_options+=(globdots) + +# Auto complete case insensitive +zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + +# Set up vim style keys +bindkey -v +export KEYTIMEOUT=1 +bindkey "^?" backward-delete-char + +# Also set vim keys to navigate the menus when double pressing tab +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect 'j' vi-down-line-or-history + +# Process the alias file +if [ -f "$HOME/.aliases" ]; then + source "$HOME/.aliases" +fi + +# Include the highlighting plug-in +{{- if eq .chezmoi.osRelease.id "debian" -}} +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2> /dev/null +{{- else }} +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2> /dev/null +{{- end }}