Skip to content

Commit

Permalink
feat: rye
Browse files Browse the repository at this point in the history
  • Loading branch information
phalanx-hk committed Jun 8, 2024
1 parent 44c45e0 commit a45bd6e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ export GPG_TTY=$(tty)
export HISTSIZE=10000
export SAVEHIST=10000

. "$HOME/.cargo/env"
eval "$(gh copilot alias -- zsh)"
21 changes: 21 additions & 0 deletions install/common/rye.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

set -Eeuxo pipefail

readonly RYE_HOME="$HOME/.rye"

function install_rye() {
curl -sSf https://rye.astral.sh/get | RYE_NO_AUTO_INSTALL=1 RYE_INSTALL_OPTION="--yes" bash
}

function uninstall_rye() {
rm -rf "${RYE_HOME}"
}

function main() {
install_rye
}

if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
main
fi

0 comments on commit a45bd6e

Please sign in to comment.