-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc.linux
64 lines (51 loc) · 1.88 KB
/
zshrc.linux
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
export ZSHRCLOADS="$ZSHRCLOADS .zshrc.linux"
# Personal binaries and Ruby gems
test -e $HOME/bin && export PATH=$HOME/bin:$PATH
# ssh-agent
# http://mah.everybody.org/docs/ssh#run-ssh-agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
}
# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
#ps ${SSH_AGENT_PID} doesn't work under cywgin
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
start_agent;
}
else
start_agent;
fi
# Virtualenvwrapper
test -e /usr/bin/virtualenvwrapper.sh && source /usr/bin/virtualenvwrapper.sh
# Pipsi
test -e $HOME/.local/bin && export PATH=$HOME/.local/bin:$PATH
# Pyenv
test -e $HOME/.pyenv && export PYENV_ROOT="$HOME/.pyenv"
test -e $HOME/.pyenv && export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
export PATH="$HOME/.pyenv/shims:${PATH}"
# Snapd
test -e /snap/bin && export PATH=/snap/bin:$PATH
# Autojump
test -e /usr/share/autojump/autojump.zsh && source /usr/share/autojump/autojump.zsh
export VAGRANT_DEFAULT_PROVIDER=virtualbox
# Tweak gnome-terminal cursor blinking
export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor)
typeset -A ZSH_HIGHLIGHT_STYLES
export ZSH_HIGHLIGHT_STYLES=(cursor bold)
# PyCharm & IntelliJ
test -e "$HOME/Applications/pycharm/pycharm-current/bin" && export PATH="$HOME/Applications/pycharm/pycharm-current/bin:$PATH"
test -e "$HOME/Applications/idea/idea-current/bin" && export PATH="$HOME/Applications/idea/idea-current/bin:$PATH"
# Prevent gray screen in PyCharm/IntelliJ
# https://github.com/swaywm/sway/issues/595
export _JAVA_AWT_WM_NONREPARENTING=1
#eval `dircolors .dircolors`