-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
51 lines (41 loc) · 1.4 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
# This is the base of the new zsh directory
MYZSH="$HOME/.myzsh"
# Specify a tmp directory to use across all modules
TMPDIR="/tmp"
# This is the theme.
THEME="default"
# This is the list of modules that generate Left Primary output.
LPRIMARY=(pwd git jobs vim)
# This is the list of modules that generate Left Secondary output.
LSECONDARY=(exitcode userhost gettime gettime-utc)
# This is the list of modules that generate Right Primary output.
RPRIMARY=(ipaddr)
# This is the list of modules that generate Right Secondary output.
if [ "$DOCKER" = "true" ]; then
RSECONDARY=(getdate)
else
RSECONDARY=(getdate battery)
fi
# This is the title of the terminal
TITLE=(pwd)
# This is the list of modules that get processed once at shell start.
# They shouldn't generate output.
if [ "$DOCKER" = "true" ]; then
EXTRA=(ssh-add localbin completions lesscolors lscolors ll coloncolon longcmd safe-paste grepcolors history)
else
EXTRA=(ssh-add localbin completions lesscolors lscolors ll coloncolon longcmd safe-paste grepcolors tmux alwaystmux docker history)
fi
if [ "$DOCKER" = "true" ]; then
PR_PRIMARY='$PR_BLUE'
elif [ "$(whoami)" = "root" ]; then
PR_PRIMARY='$PR_RED'
else
PR_PRIMARY='$PR_GREEN'
fi
################################################################################
# This kicks off our processing now that we have variables
BATT_METER="0"
BATT_PCT="1"
BATT_TIME="1"
GIT_USE_ICONS="1"
source "$MYZSH/init"