david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

Merge branch 'master' of github.com:beyondthewall/myzsh

This commit is contained in:
david 2013-06-28 17:41:17 +02:00
commit 5073c3f1a7
1 changed files with 28 additions and 0 deletions

View File

@ -105,6 +105,34 @@ update()
}
install()
{
#checking for system
systems="ubuntu arch"
issue="$(cat /etc/issue)"
packages=$*
for item in $systems; do
echo $issue | grep -i $item >> /dev/null
if [ $? -eq 0 ]; then
system=$item
fi
done
case $system in
ubuntu)
sudo apt-get install -y $packages
;;
arch)
sudo pacman -Sy --noconfirm $packages
;;
?)
echo "unknown system. could not run install."
;;
esac
}
is_dirty() {
local SUBMODULE_SYNTAX=''
if [[ $POST_1_7_2_GIT -gt 0 ]]; then