-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdot.zshrc
32 lines (25 loc) · 1.06 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
# -*-shell-script-*-
# vim: ft=zsh
# Custom functions
gitAddModified() {
git status|grep modified|awk -F ' ' '{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 fzf zsh-dircolors-solarized) # run lssolarized then setupsolarized to use
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'
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
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"