diff --git a/setup.sh b/setup.sh index 2c8d6e0..ffc1325 100755 --- a/setup.sh +++ b/setup.sh @@ -7,6 +7,38 @@ dir=~/dot_config backup=~/dot_config_backup files=".bashrc .vimrc .tmux.conf .psqlrc .gitconfig" +#-------------------------------------------------install debian tooling----------------------------------------------------------------------------------- + +#----------curl----------- +if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ] +then + echo "curl already installed" +else + echo "installing curl" + apt update -q4 + apt install curl -y +fi + +#----------vim----------- +if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ] +then + echo "vim already installed" +else + echo "installing vim" + apt update -q4 + apt install vim -y +fi + +#----------tmux----------- +if [ "$(dpkg-query -W -f='${Status}' "tmux" 2>/dev/null | grep -c "ok installed")" == "1" ] +then + echo "tmux already installed" +else + echo "installing tmux" + apt update -q4 + apt install tmux -y +fi + #------------------------------------------------ create the resore directory if it doesn't already exist-------------------------------------------------- if [ ! -d $backup ]