forked from denlab/stumpwm-config
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.shrc-path
executable file
·48 lines (34 loc) · 1.51 KB
/
.shrc-path
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
# -*- sh -*-
# adding personal folders to the initial PATH environment variables
###
# Personal shell scripts in $HOME/bin/
###
HOMEBIN=$HOME/bin
if [ -d $HOMEBIN ]; then
PATH=$HOMEBIN:$PATH
for file in $HOMEBIN/*; do
[ -d $file ] && PATH="$file:$PATH"
done
fi
# add node modules in $HOME in global context
HOME_NODE_MODULES=$HOME/node_modules
if [ -d $HOME/node_modules ]; then
for dir in $HOME_NODE_MODULES/*; do
[ -d $dir ] && PATH="$dir/bin:$PATH"
done
fi
###
# Other applications
###
function add-to-path() {
for d in $@; do
[ -d $d ] && PATH="$d:$PATH"
done
}
add-to-path $HOME/applications/stack $HOME/.guix-profile/bin $HOME/.local/bin $HOME/.cabal/bin /usr/local/heroku/bin $HOME/team/bin $HOME/work/bin $HOME/applications/wine $HOME/applications/bin /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-6-oracle $HOME/applications/apache-maven/bin $HOME/.lein $HOME/.lein/bin $HOME/.lein/plugins /opt/vagrant/bin $HOME/applications/adt-bundle-linux-x85/sdk/platform-tools $HOME/applications/appengine/bin $HOME/.cask/bin/ $HOME/.carton/bin/ $HOME/applications/play $HOME/applications/scala/scala/bin $HOME/applications/gradle/bin $HOME/applications/groovy/bin $HOME/applications/visualvm/bin $HOME/repo/perso/stumpwm/contrib $HOME/applications/packer $HOME/.evm/bin $HOME/applications/gsutil $HOME/applications/apache-ant/bin $HOME/applications/gatling/bin $HOME/.evm/bin/
PATH=$HOME/repo/private/bin/:$PATH
###
# Export part
###
export PATH
export MANPATH="/usr/local/man:$MANPATH"