-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
51 lines (38 loc) · 1.06 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
### ZSH Config
## Set TERM for proper colors
if [[ -z $TMUX ]]; then
export TERM='xterm-256color'
else
export TERM='screen-256color'
fi
### For local binaries (vim 8)
export PATH="$HOME/.cargo/bin:$PATH"
export PATH=$HOME/.local/bin:$PATH
## Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
## See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="steeef"
## Plugins
plugins=(git history-substring-search)
source $ZSH/oh-my-zsh.sh
### User configuration
source $HOME/.aliases
## GPG Auth method
export GPG_TTY=$(tty)
## Vim stuff
# Reduce delay swithing between normal & insert mode
export KEYTIMEOUT=1
# Keybindings
bindkey '^K' history-beginning-search-backward
bindkey '^J' history-beginning-search-forward
bindkey '^w' backward-kill-word
bindkey '\e[2~' insert-last-word
if [ -f /etc/os-release ]; then
. /etc/os-release
if [ "$ID" = "rhel" ]; then
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
fi
fi
## Dircolors
eval `dircolors ~/.config/dircolors-solarized/dircolors.256dark`