Skip to content

Commit 3a88980

Browse files
committed
Update yadm bootstrap for Windows
1 parent be9df27 commit 3a88980

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.config/yadm/bootstrap

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ system_type=$(uname -s)
44

55
has_command () { command -v "$1" > /dev/null 2>&1 ; }
66

7-
mkdir -p $HOME/bin
7+
mkdir -p "$HOME/bin"
88

9-
if [ $system_type = "linux" ] && has_command apt ; then
9+
if [[ $system_type =~ "MSYS" ]]; then
10+
pacman -Syu --noconfirm
11+
pacman -S --noconfirm zsh
12+
fi
13+
if [[ $system_type = [Ll]inux ]] && has_command apt ; then
1014
# Debian/Ubuntu
1115
# Note: no kdiff3; that pulls in all the GUI libs
1216
sudo apt install -y zsh curl git less vim bat eza fzf fd-find git-delta ripgrep
1317
fi
1418

15-
if [ $system_type = "linux" ] && has_command dnf ; then
19+
if [[ $system_type = [Ll]inux ]] && has_command dnf ; then
1620
# Fedora/Rocky
1721
# Note: no kdiff3; that pulls in all the GUI libs
1822
sudo dnf install -y zsh curl git less vim bat eza fd-find git-delta ripgrep
@@ -30,7 +34,7 @@ fi
3034

3135
# git graph
3236
if ! has_command git-graph; then
33-
if [[ $system_type =~ "[Ll]inux" ]]; then
37+
if [[ $system_type =~ [Ll]inux ]]; then
3438
url="https://github.com/mlange-42/git-graph/releases/download/0.5.3/git-graph-0.5.3-linux-amd64.tar.gz"
3539
elif [[ $system_type == "Darwin" ]]; then
3640
url="https://github.com/mlange-42/git-graph/releases/download/0.5.3/git-graph-0.5.3-macos-amd64.tar.gz"

0 commit comments

Comments
 (0)