-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
38 lines (29 loc) · 822 Bytes
/
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
33
34
35
36
37
38
# Support locally installed zim instead of system-wide
if [ -e ~/.zim/init.zsh ]; then
source ~/.zim/init.zsh
fi
(( $+commands[ipython] )) && alias py='ipython'
(( $+commands[matlab] )) && alias matlabnd='matlab -nodesktop -nosplash'
if [ -d /opt/cuda/bin ]; then
export PATH=$PATH:/opt/cuda/bin
fi
if (( $+commands[nvim] )) ; then
export EDITOR=nvim
else
export EDITOR=vim
fi
export SYSTEMD_EDITOR=$EDITOR
export MPD_HOST=~/.mpd/socket
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_CTRL_R_OPTS='--sort --exact'
# JIX stuff:
if [ $(hostname) = "gnu" ]; then
[ -e /home/perl/bin ] && PATH=/home/perl/bin:$PATH
PATH=$PATH:$JOBXXHOME/bin:$HOME/bin
source ~/jobxx/conf/jix-env.zsh
ulimit -Sv unlimited
ulimit -Sd unlimited
function m {
mysql "job${1:=xx}"
}
fi