-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.zsh
53 lines (40 loc) · 910 Bytes
/
custom.zsh
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
ZSH_THEME="bullet-train"
BULLETTRAIN_DIR_EXTENDED=2
BULLETTRAIN_CONTEXT_DEFAULT_USER=simeon
BULLETTRAIN_CONTEXT_BG=blue
BULLETTRAIN_CONTEXT_FG=white
#BULLETTRAIN_IS_SSH_CLIENT=true
BULLETTRAIN_PROMPT_ORDER=(
status
custom
context
dir
virtualenv
cmd_exec_time
)
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# undo annoying alias in common-aliases
unalias rm
unalias cp
unalias mv
export JAVA_HOME=/Users/simeon/.sdkman/candidates/java/current
alias diff='diff -W $(tput cols)'
gcopr() {
gco develop && gf && gco $(git branch -a | grep "remotes/.*$1" | sed 's|.*remotes/origin/\(.*\)|\1|' | tail -n 1) && gl
}
gjmessage() {
echo "$(git branch | grep \* | sed -e 's|.*/\([A-Z]*-[0-9]*\)[^0-9]*.*|\1|') $1"
}
gcj() {
gc -m "$(gjmessage $1)"
}
gcaj() {
gca -m "$(gjmessage $1)"
}
# Find alias
fa() {
alias | grep "$1"
}
# Reload zsh profile
alias rz='source ~/.zshrc'