Skip to content

Commit

Permalink
Add rye
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaron committed May 20, 2023
1 parent d974144 commit 0be9d76
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home/private_dot_config/private_zsh/private_dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if ! zgenom saved; then
# Ctrl + Shift + Arrow to select by word
zgenom load jirutka/zsh-shift-select

zgen load hlissner/zsh-autopair
zgenom load hlissner/zsh-autopair

zgenom load romkatv/powerlevel10k powerlevel10k

Expand All @@ -96,6 +96,7 @@ if ! zgenom saved; then
has pulumi && pulumi gen-completion zsh > "$ZSH_COMPLETIONS/_pulumi"
has op && op completion zsh > "$ZSH_COMPLETIONS/_op"
has flyctl && flyctl completion zsh > "$ZSH_COMPLETIONS/_flyctl"
has rye && rye self completion --shell zsh > "$ZSH_COMPLETIONS/_rye"
[[ -d "$ZSH_COMPLETIONS" ]] && zgenom load "$ZSH_COMPLETIONS"

zgenom save
Expand Down
8 changes: 8 additions & 0 deletions home/private_dot_config/private_zsh/zsh.d/install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ install-pnpm()
pnpm --version
}

# https://rye-up.com/guide/installation/#installing-rye
install-rye()
{
export RYE_HOME="$XDG_DATA_HOME/rye"
curl -sSf https://rye-up.com/get | bash
}

# https://support.zoom.us/hc/en-us/articles/204206269-Installing-or-updating-Zoom-on-Linux
install-zoom()
{
Expand Down Expand Up @@ -252,6 +259,7 @@ update-tools()
has mkcert && install-mkcert
has go && install-go
has func && install-azure-function-tools
has rye && rye self update
[[ -d "$XDG_DATA_HOME/NuGet/plugins" ]] && install-nuget-credential-provider
}

Expand Down
5 changes: 5 additions & 0 deletions home/private_dot_zshenv.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export-if-unset PYENV_ROOT "$XDG_DATA_HOME/pyenv"
eval "$(pyenv init --path)"
{{- end }}

export-if-unset RYE_HOME "$XDG_DATA_HOME/rye"
if [[ -f "$RYE_HOME/env" ]]; then
source "$RYE_HOME/env"
fi

{{ if lookPath "pnpm" -}}
if [[ ! -v "$PNPM_HOME" ]]; then
export PNPM_HOME="$XDG_DATA_HOME/pnpm"
Expand Down

0 comments on commit 0be9d76

Please sign in to comment.