Skip to content

Commit

Permalink
exec zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
dicksonarmijos committed Sep 27, 2018
1 parent 300121a commit 899f225
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ bash install-tools.sh

# OS Tested
- Debian GNU/Linux 9 (stretch) 64-bit
- Ubuntu 18.04.1 LTS (Bionic Beaver) 64-bit
26 changes: 22 additions & 4 deletions install-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@
echo "Run install tools"
sleep 1
echo "Updating repositories.."
sudo apt update

tools_requirements=(sudo git sed make wget curl)
tools_to_install=(vim tmux htop zsh nmap screen i3lock-fancy glances);
comprobate_gpl(){
local return_=1
which $1 >/dev/null 2>&1 || { local return_=0; }
echo "$return_"
}

yum=$(comprobate_gpl "yum")
apt=$(comprobate_gpl "apt")
if [ $apt -eq "1" ]; then
sudo apt update
elif [ $yum -eq "1" ]; then
sudo yum update
fi

tools_requirements=(git sed make wget curl)
tools_to_install=(vim tmux htop nmap screen i3lock-fancy glances zsh);
plugins_zsh=(git docker npm python sudo systemd web-search)


Expand All @@ -32,7 +45,11 @@ check_tool_and_install(){
echo_pass $1
else
echo_fail $1
sudo apt install $1 -y
if [ $apt -eq "1" ]; then
sudo apt install $1 -y
elif [ $yum -eq "1" ]; then
sudo yum install $1 -y
fi
if [ "$1" = "zsh" ]; then
install_oh_my_zsh
elif [ "$1" = "i3lock-fancy" ]; then
Expand Down Expand Up @@ -85,6 +102,7 @@ install_requirements(){
done
}


install_requirements

echo "Total tools: ${#tools_to_install[@]}";
Expand Down

0 comments on commit 899f225

Please sign in to comment.