From de162b86736ed6dedf4eabdd4a1dbdcbb27915bc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 27 May 2021 22:22:45 +0200 Subject: Refactor zsh config --- .config/zsh/.zshrc | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to '.config/zsh/.zshrc') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index af98c0e..dc398be 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,7 +1,31 @@ # ZSH config # Load plugins first [ -f $HOME/.config/zsh/plugins.zsh ] && source $HOME/.config/zsh/plugins.zsh -[ -f $HOME/.config/zsh/exports.zsh ] && source $HOME/.config/zsh/exports.zsh [ -f $HOME/.config/zsh/functions.zsh ] && source $HOME/.config/zsh/functions.zsh -[ -f $HOME/.config/zsh/keybindings.zsh ] && source $HOME/.config/zsh/keybindings.zsh -[ -f $HOME/.config/zsh/aliases.zsh ] && source $HOME/.config/zsh/aliases.zsh + +# Uncomment the following line to use case-sensitive completion. +CASE_SENSITIVE="true" + +zle_highlight=('paste:none') + +autoload -U colors && colors + +# For autocomplete to work +autoload -U +X compinit && compinit +autoload -U +X bashcompinit && bashcompinit + +# History in cache directory: +HISTSIZE=100000 +SAVEHIST=100000 +HISTFILE=~/.cache/zsh/history + +export CLICOLOR=1 + +# FZF search files +bindkey "รง" fzf-cd-widget + +# Search history +bindkey "^[[A" history-beginning-search-backward +bindkey "^[[B" history-beginning-search-forward + +eval "$(pyenv init -)" -- cgit v1.2.3-70-g09d2