dotfiles/remote_script.sh

15 lines
338 B
Bash
Raw Normal View History

2023-10-14 22:38:16 +02:00
#!/bin/sh
# this script is meant to be ran when .dotfiles is not present.
#
# example:
2024-06-04 14:30:25 +02:00
# curl https://git.saluco.nl/strix/dotfiles/raw/branch/main/remote_script.sh | sh
2023-10-14 22:38:16 +02:00
2023-11-19 01:11:59 +01:00
set -e
2023-11-16 15:52:49 +01:00
HOME=${HOME:-/home/${USER:-$(whomai)}}
2024-06-04 14:30:25 +02:00
[ -d "$HOME/.dotfiles" ] || git clone https://git.saluco.nl/strix/dotfiles $HOME/.dotfiles
2023-10-14 22:38:16 +02:00
cd $HOME/.dotfiles
./dot a