-
Notifications
You must be signed in to change notification settings - Fork 3
/
.zshrc
51 lines (41 loc) · 807 Bytes
/
.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-newuser-install
HISTFILE=~/.histfile
HISTSIZE=500
SAVEHIST=500
setopt autocd
unsetopt beep
bindkey -v
# compinstall
zstyle :compinstall filename '/home/donnie/.zshrc'
autoload -Uz compinit
compinit
# omz
plugins=(
archlinux
cargo
git
nmap
sudo
systemd
web-search
)
ZSH=/usr/share/oh-my-zsh/
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
source $ZSH/oh-my-zsh.sh
# prompt
PROMPT='%~ %F{red}$%f '
# aliases
source ~/.aliases
setopt COMPLETE_ALIASES
# index PATH on tab completion
zstyle ':completion:*' rehash true
# ctrl-shift-arrow word movement
bindkey -e
bindkey '^[[c' forward-word
bindkey '^[[d' backward-word
# search arch repos for commands
source /usr/share/doc/pkgfile/command-not-found.zsh
# vim: sw=4