Permalink
Browse files

Simplify symlinking during installation.

With fresh we no longer need a really complex loop.

Thanks fresh. Thresh?
  • Loading branch information...
1 parent 45d3c17 commit 5557818e882a110e690692da3752e69aa1cb7ef9 @jasoncodes committed Dec 3, 2012
Showing with 3 additions and 13 deletions.
  1. +3 −13 install.sh
View
@@ -35,19 +35,9 @@ function create_link()
}
-find .dotfiles -maxdepth 1 -type f -not -name 'install.sh' -not -name 'README*' | while read SRC
-do
- DST="`echo "$SRC" | sed -e 's#.*/#.#'`"
- case "$SRC" in
- */profile)
- create_link "$SRC" .bash_profile
- create_link "$SRC" .bashrc
- ;;
- *)
- create_link "$SRC" "$DST"
- ;;
- esac
-done
+create_link .dotfiles/profile ~/.bash_profile
+create_link .dotfiles/profile ~/.bashrc
+create_link .dotfiles/freshrc ~/.freshrc
if [ -e ~/.fresh/build/shell.sh ]; then
source ~/.fresh/build/shell.sh

0 comments on commit 5557818

Please sign in to comment.