Add setup script
This commit is contained in:
20
manager/setup.sh
Executable file
20
manager/setup.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
DF_DIR="$HOME/.config/dotfiles"
|
||||||
|
REPO="https://git.nubo.sh/hulthe/df.git"
|
||||||
|
CARGO_BIN="$HOME/.cargo/bin"
|
||||||
|
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ -d "$DF_DIR" ]]; then
|
||||||
|
cd $DF_DIR
|
||||||
|
git pull
|
||||||
|
else
|
||||||
|
git clone $REPO $DF_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
cargo install --git $REPO
|
||||||
|
|
||||||
|
$CARGO_BIN/dotfiles -v dark
|
||||||
|
|
||||||
Reference in New Issue
Block a user