forked from afeinberg/dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.zshrc
26 lines (22 loc) · 899 Bytes
/
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
# vim: ft=zsh
# Custom functions
gitAddModified() {
git status|awk -F ':' '/modified/ {print $2}'|xargs git add
}
# OMZ
export ZSH="${HOME}/.oh-my-zsh"
ZSH_THEME="robbyrussell"
zstyle ':omz:update' mode reminder # just remind me to update when it's time
plugins=(git)
test -e "${HOME}/.zshrc.local" && source "${HOME}/.zshrc.local"
source $ZSH/oh-my-zsh.sh
unalias gam
unalias gg
alias gam=gitAddModified
alias ls='ls --color -F'
export PY3_SITE_PACKAGES=$(pip3 2>/dev/null show powerline-status|awk -F ': ' '$1 == "Location" {print $2}')
# Misc tools
test -r "${HOME}/.opam/opam-init/init.zsh" && . "${HOME}/.opam/opam-init/init.zsh" > /dev/null 2> /dev/null || true
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "${HOME}/.sdkman/bin/sdkman-init.sh" ]] && source "${HOME}/.sdkman/bin/sdkman-init.sh"