File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,19 @@ system_type=$(uname -s)
44
55has_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
1317fi
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
3034
3135# git graph
3236if ! 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"
You can’t perform that action at this time.
0 commit comments