-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
27 lines (25 loc) · 930 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
# Load Nerd Fonts with Powerlevel9k theme for Zsh
POWERLEVEL9K_MODE='nerdfont-complete'
source /usr/local/opt/powerlevel9k/powerlevel9k.zsh-theme
# Customise the Powerlevel9k prompts
function aws_profile {
case "$AWS_VAULT" in
"companion-stage")
echo -n "%F{black}\uf270 STAGE"
;;
"companion-live")
echo -n "%F{red}\uf270 LIVE!"
;;
*)
esac;
}
POWERLEVEL9K_CUSTOM_AWSPROFILE="aws_profile"
POWERLEVEL9K_CUSTOM_AWSPROFILE_LIVE_BACKGROUND="white"
POWERLEVEL9K_CUSTOM_OPENREPLY="echo -n '\ufd50'"
POWERLEVEL9K_CUSTOM_OPENREPLY_FOREGROUND="black"
POWERLEVEL9K_CUSTOM_OPENREPLY_BACKGROUND="aquamarine1"
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv ip battery)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(custom_openreply custom_awsprofile ssh dir vcs)
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_SHORTEN_STRATEGY="Default"