/
zshrc.local
59 lines (45 loc) · 1.41 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
53
54
55
56
57
58
59
# Enclose whatever you want to measure your startup time against in
# zmodload zsh/zprof
# zprof
# Check if brew exists for Ubuntu systems
type brew >/dev/null 2>&1 && [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
if [ -x "$(command -v foo)" ]; then
eval $(docker-machine env default)
fi
fpath=(/usr/local/share/zsh-completions $fpath)
plugins=(
$plugins
asdf
brew
common-aliases
fasd
globalias
git-extras
history
history-sync
ssh-agent
thefuck
vi-mode
you-should-use
zsh-autosuggestions
you-should-use
)
source $ZSH/oh-my-zsh.sh
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent identities digitalocean_rsa github_rsa gitlab_rsa heroku_rsa id_rsa localhost_rsa notabug_rsa srht_rsa
zstyle :omz:plugins:ssh-agent lifetime 4h
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
# [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
if [ -x "$(alias fd)" ]; then
unalias fd
unalias ff
fi
function whodunit() {
git blame $1 | awk -F ' ' '{print $2}' | sort | uniq -c
}
# eval "$(ssh-agent -s)"
export ZSH_HISTORY_PROJ=$HOME/_code/configs/zsh-sync-history
export ZSH_HISTORY_FILE_ENC=$ZSH_HISTORY_PROJ/$ZSH_HISTORY_FILE_ENC_NAME
export GIT_COMMIT_MSG="Pushing latest history from $HOST on $(date)"
export PATH="$HOME/.bin:$PATH"