Files
dots/.config/zsh/zshrc
2022-06-28 15:29:49 +03:00

39 lines
1023 B
Bash

# prompt
autoload -U colors && colors
PS1="%B%{$fg[cyan]%}%n%{$reset_color%}@%M %~ $%b "
# vi mode
bindkey -v
# history config
HISTFILE=$XDG_CACHE_HOME/zsh/histfile
HISTSIZE=5000
SAVEHIST=5000
setopt histignorespace
# history search
autoload -U history-search-end
autoload -Uz compinit && compinit
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
#
# paths & variables
#
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/.local/share/cargo/bin:$PATH
export PATH=$HOME/.local/share/go/bin:$PATH
export PATH=$HOME/.local/share/npm/bin:$PATH
export PATH=$HOME/tools/nvim:$PATH
export PATH=$HOME/.config/scripts/applications:$PATH
export PATH=$HOME/.config/scripts/util:$PATH
export TERM=xterm # for ssh
export EDITOR=nvim
# sources
source $ZDOTDIR/aliases
source $XDG_DATA_HOME/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh