commit 13c17ef14125627d7cc715ebb18d38150b2b7a11
parent 8ba721bd73e159501137fc2b22f94b86db0ad58c
Author: oscarbenedito <oscar@obenedito.org>
Date:   Wed, 22 Jan 2020 23:00:26 +0100

Added .zshrc

Diffstat:
Adot_zshrc | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/dot_zshrc b/dot_zshrc @@ -0,0 +1,33 @@ +# 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 + +# Set up navigation menu when pressing tab multiple times +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +#_comp_options+=(globdots) + +# Set up vim style keys +bindkey -v +export KEYTIMEOUT=1 + +# 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