-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
73 lines (56 loc) · 1.79 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh
autoload -Uz compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*:ssh:*' hosts off
zstyle ':completion:*' menu select
setopt PROMPT_SUBST
source "$HOME/.config/zsh-prompt.sh"
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
HISTSIZE=5000
HISTFILE=~/.zsh_history
SAVEHIST=5000
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt incappendhistory
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
setopt globdots
setopt complete_aliases
bindkey "^[[3~" delete-char
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>/ '$'\n'
autoload -Uz select-word-style
select-word-style normal
zstyle ':zle:*' word-style unspecified
export EDITOR='micro'
export GIT_EDITOR='micro'
export SYSTEMD_EDITOR='micro'
alias tab='sed "s/^/ /"'
alias cfg='git --git-dir=$HOME/cfg/ --work-tree=$HOME'
compdef cfg='git'
alias tigc='GIT_DIR=$HOME/cfg/ GIT_WORK_TREE=$HOME tig'
compdef tigc='tig'
alias ctrlc='xclip -selection clipboard -i'
alias ctrlv='xclip -selection clipboard -o'
# if [ -e /etc/profile.d/vte.sh ]; then
# . /etc/profile.d/vte.sh
# fi
# Compilation flags
export ARCHFLAGS="-arch x86_64"
ZSH_CACHE_DIR=$HOME/.cache/zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
source /usr/share/nvm/init-nvm.sh
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
export PATH="$HOME/.cargo/bin:$PATH"