feat(bootstrap): Bootstrap script for GNU/Linux without admin

This commit is contained in:
js0ny 2025-02-23 20:00:14 +00:00
parent cb81dc8d53
commit 8aa9daf582
12 changed files with 340 additions and 80 deletions

View file

@ -1,3 +1,4 @@
# This should be run with bash > 4.0 or zsh
set -e # Exit immediately if a command exits with a non-zero status
DOTFILES="${DOTFILES:-$HOME/.dotfiles}"
@ -64,8 +65,10 @@ else
linkDots+=(
["$DOTFILES/common/inputrc"]="$HOME/.inputrc"
)
if [ "$(uname -r)" = *Microsoft* ]; then
echo "[INFO] Running on WSL1"
# WSL1 : Microsoft
# WSL2 : microsoft
if [ "$(uname -r)" = *icrosoft* ]; then
echo "[INFO] Running on WSL"
: # NOP
else
echo "[INFO] Running on Native Linux"