Move non-shell related things to resources.
This commit is contained in:
parent
e9574821db
commit
62349e337d
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
case `uname` in
|
case `uname` in
|
||||||
'Darwin')
|
'Darwin')
|
||||||
readlink_command='greadlink'
|
readlink_command='greadlink'
|
||||||
|
27
setup.sh
27
setup.sh
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user