Skip to content

Commit

Permalink
Adds programs to pixi and github install
Browse files Browse the repository at this point in the history
  • Loading branch information
jevandezande committed Aug 15, 2024
1 parent f80ce7a commit e1558e0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
1 change: 0 additions & 1 deletion config/setup/apt_install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ apt_progs=(
fd-find # Much faster than `find`
g++ # C++ compiler
gfortran # PSI4
gh # Github
git # VCS
gkrellm # System monitor
google-chrome # Browser
Expand Down
2 changes: 0 additions & 2 deletions config/setup/brew_install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ then
fi

brew_progs=(
act
htop
node
openjpeg
Expand All @@ -23,7 +22,6 @@ casks=(
)

mac_only=(
gh
imagemagick
rcm
wget
Expand Down
23 changes: 21 additions & 2 deletions config/setup/github_install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
if ! type gh > /dev/null
then
echo "gh is not installed"
echo "Trying to install via brew"
brew install gh
echo "Trying to install via pixi"
if ! type pixi > /dev/null
then
echo "Installing Pixi"
curl -fsSL https://pixi.sh/install.sh | bash
fi
pixi global install gh
fi

if ! gh auth status 2> /dev/null
Expand Down Expand Up @@ -38,3 +43,17 @@ pushd ~/progs/
fi
done
popd


github_extensions=(
github/gh-copilot # chat interface for questions about the command line
dlvhdr/gh-dash # displays a dashboard with pull requests and issues
gennaro-tedesco/gh-f # fuzzy finder for gh-cli
yusukebe/gh-markdown-preview # renders markdown documents in your browser
meiji163/gh-notify # shows your GitHub notifications
seachicken/gh-poi # safely cleans up old local branches
)
for ext in $github_extensions
do
gh extension install $ext
done
20 changes: 20 additions & 0 deletions config/setup/pixi_install.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env zsh

if ! type pixi > /dev/null
then
echo "Installing Pixi"
curl -fsSL https://pixi.sh/install.sh | bash
fi

pixi_progs=(
act
cookiecutter
direnv
gh
pre-commit
)

for prog in ${pixi_progs[@]}
do
pixi global install $prog
done

0 comments on commit e1558e0

Please sign in to comment.