53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
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/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
|
|
|
|
#
|
|
# cleanup
|
|
#
|
|
|
|
# these are useless to me
|
|
rm -rf ~/.thumbnails
|
|
rm -rf ~/.nv
|
|
rm -rf ~/.tooling
|
|
rm -rf ~/.wget-hsts
|
|
rm -rf ~/.java
|
|
rm -rf ~/.rubberband.wisdom.d
|
|
rm -rf ~/.urxvt
|
|
rm -rf ~/.python_history
|
|
rm -rf ~/.pylint.d
|
|
|
|
# sources
|
|
source $ZDOTDIR/aliases
|
|
source $XDG_DATA_HOME/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|