-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_zshrc
79 lines (65 loc) · 1.61 KB
/
dot_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
source ~/.bin/hg_commit.zsh
source ~/.bin/taste_tester.zsh
## OH MY ZSH ##
plugins=(
fzf
zsh-autosuggestions
zsh-syntax-highlighting
)
ZSH_THEME="spaceship"
export LS_COLORS="di=34:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43"
## SPACESHIP PROMPT ##
SPACESHIP_TIME_SHOW="true"
SPACESHIP_TIME_FORMAT="[%T]"
SPACESHIP_PROMPT_ORDER=(
dir # Current directory section
git # Git section (git_branch + git_status)
hg_commit
golang # Go section
rust # Rust section
)
if [[ "$ENV_LOCATION" != "devserver" ]]; then
SPACESHIP_PROMPT_ORDER+=(
python # Python section
)
fi
SPACESHIP_PROMPT_ORDER+=(
exec_time # Execution time
line_sep # Line break
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_RPROMPT_ORDER=(
taste_tester
)
if [[ -z "$TMUX" ]]; then
# Only show host if not running in tmux.
SPACESHIP_RPROMPT_ORDER+=(host)
fi
SPACESHIP_RPROMPT_ORDER+=(
time # Time stamps section
)
source $HOME/.oh-my-zsh/oh-my-zsh.sh
autoload -Uz compinit
for dump in ~/.zcompdump(N.mh+24); do
compinit
done
compinit -C
if type "eza" >/dev/null; then
alias ls="eza"
elif type "exa" >/dev/null; then
alias ls="exa"
fi
if type "bat" >/dev/null; then
alias cat="bat"
fi
if type "duf" >/dev/null; then
alias df="duf"
fi
if type "difft" >/dev/null; then
alias difft="difft --display side-by-side-show-both"
fi
alias irssi=irssi --config="$XDG_CONFIG_HOME"/irssi/config --home="$XDG_DATA_HOME"/irssi
alias svn="svn --config-dir $XDG_CONFIG_HOME/subversion"
alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"