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:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
|
|
||||||
commandAvailable() {
|
commandAvailable() {
|
||||||
command -v $1 >/dev/null
|
command -v $1 >/dev/null
|
||||||
@@ -30,8 +30,6 @@ if ! commandAvailable stow; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $DIR && echo "Current working directory is ${DIR}"
|
|
||||||
|
|
||||||
echo -n "Downloading dependencies... "
|
echo -n "Downloading dependencies... "
|
||||||
|
|
||||||
git submodule update --init &> /dev/null \
|
git submodule update --init &> /dev/null \
|
||||||
@@ -39,8 +37,6 @@ git submodule update --init &> /dev/null \
|
|||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
installIfAvailable vim
|
installIfAvailable vim
|
||||||
installIfAvailable zsh
|
installIfAvailable zsh
|
||||||
installIfAvailable sqlite3 sqlite
|
installIfAvailable sqlite3 sqlite
|
||||||
|
|||||||
7
uninstall.sh
Executable file
7
uninstall.sh
Executable 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"
|
||||||
Reference in New Issue
Block a user