-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
88 lines (70 loc) · 1.6 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# PATH
path+=(
~/.local/bin/
~/.cargo/bin/
/opt/rakudo-star-2018.04/bin
/opt/rakudo-star-2018.04/share/perl6/site/bin
/usr/lib/factor
)
# Make cd act like pushd
setopt autopushd
# don't push the same dir twice.
setopt pushd_ignore_dups
# avoid "beep"ing
setopt nobeep
source ~/antigen.zsh
antigen use oh-my-zsh
antigen theme https://github.com/caiogondim/bullet-train-oh-my-zsh-theme bullet-train
BULLETTRAIN_PROMPT_CHAR="⌘ "
BULLETTRAIN_TIME_BG="black"
BULLETTRAIN_TIME_FG="white"
BULLETTRAIN_GIT_DIRTY="%F{red} ✖%F{black}"
BULLETTRAIN_GIT_CLEAN="%F{green} ✔ %F{black}"
BULLETTRAIN_GIT_MODIFIED="%F{blue} ✱%F{black}"
BULLETTRAIN_GIT_UNTRACKED="%F{yellow} ❖%F{black}"
BULLETTRAIN_PROMPT_ORDER=(
time
dir
git
cmd_exec_time
)
# When running on a Mac
[[ "`uname`" == Darwin ]] && NAME=macOS
[[ -f /etc/os-release ]] && source /etc/os-release
case $NAME in
"Arch Linux")
antigen bundle archlinux
;;
*SUSE*)
antigen bundle suse
;;
macOS)
antigen bundle osx
antigen bundle brew
;;
*)
which apt 1>/dev/null && antigen bundle debian
;;
esac
antigen bundle colored-man-pages
antigen bundle copybuffer
antigen bundle dircycle
antigen bundle git
antigen bundle lein
antigen bundle npm
antigen bundle nvm
antigen bundle pip
antigen bundle python
antigen bundle z
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions
antigen apply
function ghclone () {
git clone https://github.com/$1
}
function kill-emacs () {
pkill emacs
}
[[ -f ~/.profile ]] && source ~/.profile
# Hook for desk activation
[ -n "$DESK_ENV" ] && source "$DESK_ENV" || true