diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-02-07 14:54:42 +1300 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-02-07 14:54:42 +1300 |
commit | 923a618195ef07f46b541b0e3d4c47567a8fbd92 (patch) | |
tree | 973446be0c0a90ef8ba3491a54f28cf2e86510f4 | |
parent | 8d65d235929eda9a92eac19d6e663314e8f8f38c (diff) | |
download | dotfiles-923a618195ef07f46b541b0e3d4c47567a8fbd92.tar.xz |
Setup script can be run from anywhere
-rwxr-xr-x | setup | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |