summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-02-07 14:54:42 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-02-07 14:54:42 +1300
commit923a618195ef07f46b541b0e3d4c47567a8fbd92 (patch)
tree973446be0c0a90ef8ba3491a54f28cf2e86510f4 /setup
parent8d65d235929eda9a92eac19d6e663314e8f8f38c (diff)
downloaddotfiles-923a618195ef07f46b541b0e3d4c47567a8fbd92.tar.xz
Setup script can be run from anywhere
Diffstat (limited to 'setup')
-rwxr-xr-xsetup5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup b/setup
index bb8d4eb..8db1765 100755
--- a/setup
+++ b/setup
@@ -1,10 +1,11 @@
#!/bin/bash
+cd $(dirname $0)
+
for i in $(ls -1 | grep -v $(basename $0)) ; do
ln -s ${PWD/$HOME\//}/$i $HOME/.$i
done
# extra symlinks
-pushd $HOME
+cd $HOME
ln -s .bash_profile .bashrc
-popd