1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 12:30:32 +01:00

Improve install and uninstall.

This commit is contained in:
Bert Peters
2016-06-15 15:33:48 +02:00
parent b15ed71325
commit 7883c907eb
2 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd "$( dirname "${BASH_SOURCE[0]}" )"
commandAvailable() {
command -v $1 >/dev/null
@@ -30,8 +30,6 @@ if ! commandAvailable stow; then
exit 1
fi
cd $DIR && echo "Current working directory is ${DIR}"
echo -n "Downloading dependencies... "
git submodule update --init &> /dev/null \
@@ -39,8 +37,6 @@ git submodule update --init &> /dev/null \
echo "done."
installIfAvailable vim
installIfAvailable zsh
installIfAvailable sqlite3 sqlite

7
uninstall.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )"
find . -maxdepth 1 -mindepth 1 -type d -print0 | \
xargs -0 -n 1 basename | \
xargs stow -D -t "$HOME"