From 940e9f394515dd272497b361e5baba92ac2023c7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Jul 2022 14:15:02 +0200 Subject: [PATCH] Update --- unixconf.sh | 37 ++----------------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) diff --git a/unixconf.sh b/unixconf.sh index 7a4bf54..90f5a17 100755 --- a/unixconf.sh +++ b/unixconf.sh @@ -1,7 +1,7 @@ #!/bin/sh gitlink="https://gitlab.cpy.re/florian/unixconf/repository/archive.zip?ref=master" -musthaves="zsh wget git vim ssh-agent urxvt unzip ruby ctags" +musthaves="zsh wget git vim unzip" if [ ! -z ${1+x} ] && [ "$1" == "skip-install" ]; then musthaves="" @@ -11,7 +11,7 @@ for musthave in $musthaves; do which "$musthave" >/dev/null 2>&1 if [ "$?" -ne 0 ]; then echo "You should install ${musthave}." - echo "On Ubuntu 14.04: apt-get install zsh wget git vim-nox openssh-client rxvt-unicode unzip ruby exuberant-ctags" + echo "On Ubuntu: apt-get install zsh wget git vim unzip" exit fi done @@ -20,36 +20,3 @@ done SHELL=zsh sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" echo "Setting ZSH as default." echo "exec zsh" >> "$HOME/.bash_profile" - -# Copy configurations -tempdir="temp_$(date -I)" - -cd "$HOME" || exit -mkdir "$tempdir" -cd "$tempdir" || exit - -wget -O tempconf.zip "$gitlink" -unzip tempconf.zip -rm tempconf.zip - -rootdir="$(ls)" -cd "$rootdir/configurations" || exit -cp .* "$HOME/" - -# Vim setup -if (! test -d "$HOME/.vim" ); then - mkdir "$HOME/.vim" -fi -if (! test -d "$HOME/.vim/bundle" ); then - mkdir "$HOME/.vim/bundle" -fi -if (! test -d "$HOME/.vim/spell" ); then - mkdir "$HOME/.vim/spell" -fi -cd "$HOME/.vim/spell" || exit -wget http://ftp.vim.org/vim/runtime/spell/fr.utf-8.spl -git clone https://github.com/VundleVim/Vundle.vim.git "$HOME/.vim/bundle/vundle" -vim +PluginInstall +qall - -cd "$HOME" || exit -rm -r "$tempdir"