-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
48 lines (35 loc) · 1.04 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
# automatically open TMUX on terminal start
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux
fi
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git svn
precmd() {
vcs_info
}
# change how the prompt (left of cursor) looks
PROMPT='%F{gray}%*%f %F{cyan}%? %B%F{magenta}%~%f%b %B%F{gray}$%f%b '
# access iCloud quickly
alias cloud="cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/"
# refresh on cd; used for working directory path in TMUX status bar
cd() {
builtin cd $1
tmux refresh-client -S
}
# use nvim by default
alias vim=nvim
# Ubuntu ll command
alias ll='ls -lGaf'
# caps match nocaps
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
autoload -Uz compinit && compinit
# used for 256 color
export TERM=xterm-256color
# kubectl alias
alias k=kubectl
# Autocomplete for kubectl and k
source <(kubectl completion zsh)
# Show colors for different file types
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export EDITOR=nvim