all repos — dotfiles @ be1efe213be97eb7d24f867e6e1b3a4f9ec468a0

my *nix dotfiles

zsh/.zshrc (view raw)

 1#               __             
 2#   ____  _____/ /_  __________
 3#  /_  / / ___/ __ \/ ___/ ___/
 4# _ / /_(__  ) / / / /  / /__  
 5#(_)___/____/_/ /_/_/   \___/  
 6#
 7
 8# export thingys
 9export ZSH=/home/$USER/.oh-my-zsh
10export BROWSER=/usr/bin/firefox
11export EDITOR=/usr/bin/nvim
12export SSH_KEY_PATH="~/.ssh/id_rsa"
13export PATH=$PATH:$HOME/bin
14export GPG_TTY=$(tty)
15export INPUTRC=~/.inputrc
16export PATH=$PATH:$HOME/Leet/Nim/bin
17export PATH=$PATH:$HOME/.nimble/bin
18export PATH=$PATH:$HOME/.local/bin
19
20# zsh setup
21autoload -Uz compinit colors add-zsh-hook history-search-end
22colors
23compinit
24zstyle ':completion:*' list-colors "di=34"
25zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
26export ZLE_REMOVE_SUFFIX_CHARS=''
27setopt extended_glob
28setopt autocd
29
30# partial history matching
31zle -N history-beginning-search-backward-end history-search-end
32zle -N history-beginning-search-forward-end history-search-end
33bindkey "^[OA" history-beginning-search-backward-end
34bindkey "^[OB" history-beginning-search-forward-end
35
36# command history
37[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
38HISTSIZE=50000
39SAVEHIST=10000
40
41setopt extended_history
42setopt hist_expire_dups_first
43setopt hist_ignore_dups
44setopt hist_ignore_space
45setopt hist_verify
46setopt inc_append_history
47setopt share_history
48
49# prompt
50_nicy_prompt() {
51	PROMPT=$("$HOME/.nimble/bin/nicy")
52}
53add-zsh-hook precmd _nicy_prompt
54
55# end and home keys
56bindkey "^[[1~" beginning-of-line
57bindkey "^[[4~" end-of-line
58
59[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
60
61# base16-shell 
62BASE16_SHELL="$HOME/.config/base16-shell/"
63[ -n "$PS1" ] && \
64    [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
65        eval "$("$BASE16_SHELL/profile_helper.sh")"
66
67# fpath
68fpath=($HOME/.zsh/zsh-completions/src $fpath)
69
70# sourced scripts
71source /usr/share/autojump/autojump.zsh
72source $HOME/.aliases
73source $HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
74source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
75source $HOME/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
76
77# emacsy binds
78bindkey -e