-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
128 lines (124 loc) · 3.05 KB
/
zprofile
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Settings for golang {{{
if command -v go >/dev/null; then
export GOROOT=`go env GOROOT`
export GOPATH=$HOME/.go
export GOBIN=$GOPATH/bin
fi
# }}}
# Settings for gem {{{
if command -v gem >/dev/null; then
export GEM_BIN=$(ruby -e "print Gem.user_dir")/bin
fi
# }}}
# Editor {{{
export EDITOR=nvim
export CVSEDITOR="${EDITOR}"
export SVN_EDITOR="${EDITOR}"
export GIT_EDITOR="${EDITOR}"
# }}}
# Language {{{
# LANGUAGE must be set by en_US
export LANGUAGE="en_US.UTF-8"
export LANG="${LANGUAGE}"
export LC_ALL="${LANGUAGE}"
export LC_CTYPE="${LANGUAGE}"
# }}}
# Paths {{{
# Ensure path arrays do not contain duplicates.
typeset -gx -U cdpath fpath mailpath path
fpath=( \
~/.zsh/Completion(N-/) \
~/.zsh/functions(N-/) \
~/.linuxbrew/share/zsh/site-functions \
~/.zsh/plugins/zsh-completions(N-/) \
/usr/local/share/zsh/site-functions(N-/) \
$fpath \
)
# }}}
# Set the list of directories that Zsh searches for programs {{{
path=(
/usr/local/{bin,sbin}
$path
$GOBIN
$GEM_BIN
$HOME/.cargo/bin
$HOME/bin
$HOME/.local/bin
)
# }}}
# Pager {{{
export PAGER=bat
export LESS='-F -g -i -M -R -S -w -X -z-4'
export LESSCHARSET='utf-8'
# LESS man page colors (makes Man pages more readable).
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[00;44;37m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# Set the Less input preprocessor.
if (( $+commands[lesspipe.sh] )); then
export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'
fi
# }}}
# History {{{
# History file
export HISTFILE=~/.zsh_history
# History size in memory
export HISTSIZE=10000
# The number of histsize
export SAVEHIST=1000000
# The size of asking history
export LISTMAX=50
# Do not add in root
if [[ $UID == 0 ]]; then
unset HISTFILE
export SAVEHIST=0
fi
# }}}
# Temporary Files {{{
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$USER"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
#}}}
# Gurobi environment {{{
export GUROBI_HOME="/opt/gurobi912/linux64"
export LD_LIBRARY_PATH=$GUROBI_HOME/lib
export CPLEX_DIR="/opt/ibm/ILOG/CPLEX_Studio1210"
export CPLEX_STUDIO_BINARIES="${CPLEX_DIR}/cplex/bin/x86-64_linux"
export PATH="${PATH}:${GUROBI_HOME}/bin:${CPLEX_DIR}/cplex/bin/x86-64_linux"
# }}}
# thefuck {{{
eval $(thefuck --alias)
# }}}
# Ripgrep config file {{{
export RIPGREP_CONFIG_PATH=~/.config/ripgrep/ripgreprc
# }}}
# Configure Zoxide {{{
eval "$(zoxide init zsh)"
# }}}
# Configure Broot {{{
source $HOME/.config/broot/launcher/bash/br
# }}}
# VirtualEnv {{{
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Code
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
# }}}
# VCPKG_ENV {{{
export VCPKG_ROOT=$HOME/vcpkg
# }}}
#" Folding the .vimrc {{{
# vim:foldmethod=marker:foldlevel=0
# }}}
if command -v /home/linuxbrew/.linuxbrew/bin/brew >/dev/null; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi