Move non-shell related things to resources.

This commit is contained in:
Ivan Malison 2014-04-14 13:52:10 -07:00
parent e9574821db
commit 62349e337d
5 changed files with 15 additions and 14 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
case `uname` in case `uname` in
'Darwin') 'Darwin')
readlink_command='greadlink' readlink_command='greadlink'

View File

@ -1,16 +1,21 @@
#!/bin/bash #!/bin/sh
# Assumes that gcc, make and git as well as a package manager (brew, case `uname` in
# apt-get) is installed on the system. 'Darwin')
readlink_command='greadlink'
# Go to the source directory of this script. ;;
cd "$(dirname "${BASH_SOURCE}")" *)
readlink_command='readlink'
esac
DOTFILES_DIRECTORY="$(dirname "${BASH_SOURCE}" | xargs ${readlink_command} -f)"
cd $DOTFILES_DIRECTORY
case `uname` in case `uname` in
'Darwin') 'Darwin')
source .brew source resources/osx.sh
;; source resources/brew.sh
;;
'Linux') 'Linux')
source .apt-get source resources/apt-get.sh
;; ;;
esac esac
@ -24,7 +29,3 @@ function install_python_packages() {
echo "Installing Dot Files." echo "Installing Dot Files."
source bootstrap.sh source bootstrap.sh
echo "Installing Tmux Configuration."
tmux-powerline/generate_conf.sh
echo "Installing oh-my-zsh."
oh-my-zsh/install.sh -f