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
'Darwin')
readlink_command='greadlink'

View File

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