-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshenv
78 lines (63 loc) · 2.07 KB
/
zshenv
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
export ZSHENV_LOADED=1
if [[ -d ~/.gem/ruby/ ]] && ls ~/.gem/ruby/ >/dev/null 2>&1; then
for dir in ~/.gem/ruby/*; do
if [[ -d $dir/bin ]]; then
export PATH="$dir/bin:$PATH"
fi
done
fi
pathmunge () {
if ! echo $PATH | egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
pathmunge /usr/local/bin
pathmunge $HOME/bin
pathmunge $HOME/dev/opt/android-sdk-macosx/tools
pathmunge $HOME/dev/opt/android-sdk-macosx/platform-tools
pathmunge $HOME/.local/share/go/bin
pathmunge $HOME/.rbenv/bin
pathmunge $HOME/.local/bin
export PATH
unfunction pathmunge
export DEBFULLNAME="Abhishek Mukherjee"
export DEBEMAIL="[email protected]"
# Default program settings
export EDITOR="vim"
export LESS="--ignore-case -R"
which vimmanpager > /dev/null 2>&1 && export MANPAGER="vimmanpager"
which vimpager >/dev/null 2>&1 && export PAGER="vimpager" && alias less=vimpager && alias zless=vimpager
# Gentoo settings
export PALUDIS_OPTIONS="--log-level warning"
export INQUISITIO_OPTIONS="--log-level warning"
export QEMU_AUDIO_DRV=pa
export SDL_AUDIODRIVER="pulse"
export LANG="en_US.UTF-8"
export LOCALE="$LANG"
export HADOOP_HOME=/opt/hadoop
export PATH="$PATH:$HADOOP_HOME/bin"
export PATH="$PATH:$HOME/.local/bin"
# RBENV Settings
export RBENV_ROOT=/usr/local/var/rbenv
# Gradle
export GRADLE_OPTS="-Dorg.gradle.daemon=true -Dorg.gradle.parallel=true"
# Set term to xterm-256color if we can
typeset -a find_directories
[[ -d /lib/terminfo ]] && find_directories+=(/lib/terminfo)
[[ -d /user/share/terminfo ]] && find_directories+=(/user/share/terminfo)
if [[ $TERM != *256* ]] && [[ ${#find_directories} -gt 0 ]]; then
if find ${find_directories[@]} -name 'xterm-256color' > /dev/null 2>&1; then
export TERM="xterm-256color"
fi
fi
if [[ -f $HOME/.zshenv.local ]]; then
source ~/.zshenv.local
fi
if (( $+commands[rg] )); then
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
fi
export PATH="$HOME/go/bin:$PATH"