dotfiles/remote_script.sh

15 lines
340 B
Bash
Raw Permalink 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 01:34:28 +02:00
# curl https://git.saluco.net/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 01:34:28 +02:00
[ -d "$HOME/.dotfiles" ] || git clone https://git.saluco.net/strix/dotfiles $HOME/.dotfiles
2023-10-14 22:38:16 +02:00
cd $HOME/.dotfiles
./dot a