Merge branch 'master' of github.com:beyondthewall/myzsh
This commit is contained in:
commit
5073c3f1a7
|
@ -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
|
||||
|
|
Reference in New Issue