Skip to content

Commit

Permalink
Update yadm bootstrap for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
garyo committed Nov 2, 2024
1 parent be9df27 commit 3a88980
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .config/yadm/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ system_type=$(uname -s)

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

mkdir -p $HOME/bin
mkdir -p "$HOME/bin"

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

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

# git graph
if ! has_command git-graph; then
if [[ $system_type =~ "[Ll]inux" ]]; then
if [[ $system_type =~ [Ll]inux ]]; then
url="https://github.com/mlange-42/git-graph/releases/download/0.5.3/git-graph-0.5.3-linux-amd64.tar.gz"
elif [[ $system_type == "Darwin" ]]; then
url="https://github.com/mlange-42/git-graph/releases/download/0.5.3/git-graph-0.5.3-macos-amd64.tar.gz"
Expand Down

0 comments on commit 3a88980

Please sign in to comment.