We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531d88f commit c4321d8Copy full SHA for c4321d8
skel/.bash_profile
@@ -12,24 +12,19 @@
12
append () {
13
# First remove the directory
14
local IFS=':'
15
- local NEWPATH
+ local NEWPATH DIR
16
for DIR in $PATH; do
17
if [ "$DIR" != "$1" ]; then
18
- NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
+ NEWPATH="${NEWPATH:+$NEWPATH:}$DIR"
19
fi
20
done
21
# Then append the directory
22
- export PATH=$NEWPATH:$1
+ export PATH="$NEWPATH:$1"
23
}
24
25
if [ -f "$HOME/.bashrc" ] ; then
26
source $HOME/.bashrc
27
28
29
-if [ -d "$HOME/bin" ] ; then
30
- append $HOME/bin
31
-fi
32
-
33
-unset append
34
35
# End ~/.bash_profile
0 commit comments