-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc.omz.bak
97 lines (81 loc) · 1.86 KB
/
.zshrc.omz.bak
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/env zsh
#zmodload zsh/zprof
export ZSH=$HOME/.oh-my-zsh
ZSH_DISABLE_COMPFIX=true
[ -f ~/.profile ] && source ~/.profile
ZSH_THEME="bira"
#COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="mm/dd/yyyy"
if [[ -z $ZSH_TMUX_AUTOSTART_OVERRIDE ]]
then
export ZSH_TMUX_AUTOSTART=true
fi
plugins=(
asdf
common-aliases
command-not-found
copyfile
docker
#encode64
git
git-flow
golang
#gpg-agent
#kube-ps1
kubectl
sudo
#suse
systemd
tmux
vagrant
vi-mode
vscode
web-search
keychain
gpg-agent
brew
)
source $ZSH/oh-my-zsh.sh
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
rm -f ~/.zcompdump; compinit
fi
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
}
pastefinish() {
zle -N self-insert $OLD_SELF_INSERT
}
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish
export WORKON_HOME=~/Envs
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
_direnv_hook() {
eval "$(direnv export zsh)";
}
typeset -ag precmd_functions;
if [[ -z ${precmd_functions[(r)_direnv_hook]} ]]; then
precmd_functions+=_direnv_hook;
fi
function powerline_precmd() {
PS1="$($GOPATH/bin/powerline-go -error $? -shell zsh -newline -modules kube,git,jobs,cwd,exit)"
}
function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
if [ "$s" = "powerline_precmd" ]; then
return
fi
done
precmd_functions+=(powerline_precmd)
}
install_powerline_precmd
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/usr/local/opt/libxml2/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
#zprof
autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
export PATH="$PATH:/Users/phisco/.local/bin"