Print warning if user cannot sudo to install packages
This commit is contained in:
10
install.sh
10
install.sh
@@ -4,7 +4,11 @@ cd "$APP_DIR"
|
|||||||
APP_DIR="$(pwd)"
|
APP_DIR="$(pwd)"
|
||||||
|
|
||||||
echo "Install zsh and friends"
|
echo "Install zsh and friends"
|
||||||
|
if sudo -l apt; then
|
||||||
sudo apt install zsh command-not-found
|
sudo apt install zsh command-not-found
|
||||||
|
else
|
||||||
|
echo "Unable to autoinstall zsh and friends, please install manually"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Install oh-my-zsh and plugins"
|
echo "Install oh-my-zsh and plugins"
|
||||||
if ! [ -d .oh-my-zsh ]; then
|
if ! [ -d .oh-my-zsh ]; then
|
||||||
@@ -33,8 +37,12 @@ for x in $(ls -a); do
|
|||||||
done
|
done
|
||||||
IFS="$OLDIFS"
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
echo "Install vim and friends"
|
echo "Install vim-nox and friends"
|
||||||
|
if sudo -l apt; then
|
||||||
sudo apt install vim-nox git
|
sudo apt install vim-nox git
|
||||||
|
else
|
||||||
|
echo "Unable to autoinstall vim-nox and friends, please install manually"
|
||||||
|
fi
|
||||||
mkdir -pv "$HOME/.vim/bundle"
|
mkdir -pv "$HOME/.vim/bundle"
|
||||||
git clone https://github.com/VundleVim/Vundle.vim "$HOME/.vim/bundle/Vundle.vim"
|
git clone https://github.com/VundleVim/Vundle.vim "$HOME/.vim/bundle/Vundle.vim"
|
||||||
vim +PluginInstall +qall
|
vim +PluginInstall +qall
|
||||||
|
|||||||
Reference in New Issue
Block a user