-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc.local
52 lines (43 loc) · 1.37 KB
/
.zshrc.local
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
# vim mode
bindkey -v
alias python=python3
alias pip=pip3
export ANDROID_HOME=~/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# brew --prefix kotlin
if [ -d "/usr/local/opt/kotlin" ]; then
export KOTLIN_HOME="/usr/local/opt/kotlin/libexec"
fi
export PATH=$PATH:~/.cargo/bin:~/go/bin
export PATH=$PATH:~/bin
# if [ -d ~/.vim/plugged/gruvbox ]; then
# case $OSTYPE in
# linux*)
# source ~/.vim/plugged/gruvbox/gruvbox_256palette.sh
# ;;
# darwin*)
# source ~/.vim/plugged/gruvbox/gruvbox_256palette_osx.sh
# ;;
# esac
# fi
# if type "compaudit" > /dev/null; then
# # http://github.com/zplug/zplug/issues/514#issuecomment-491848352
# compaudit | xargs -r chmod go-w
# fi
tic -x ~/.dotfiles/xterm-256color-italic.terminfo
tic -x ~/.dotfiles/tmux-256color.terminfo
# fshow - git commit browser
fshow() {
git log --graph --color=always \
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
fzf --ansi --no-sort --reverse --tiebreak=index --bind=ctrl-s:toggle-sort \
--bind "ctrl-m:execute:
(grep -o '[a-f0-9]\{7\}' | head -1 |
xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF'
{}
FZF-EOF"
}
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi