parent
764d2ec921
commit
6043c65210
9 changed files with 241 additions and 65 deletions
|
@ -28,19 +28,8 @@ if which direnv > /dev/null; then
|
|||
eval "$(direnv hook zsh)"
|
||||
fi
|
||||
|
||||
if which rbenv > /dev/null; then
|
||||
eval "$(rbenv init --no-rehash -)"
|
||||
(rbenv rehash &) 2> /dev/null
|
||||
fi
|
||||
|
||||
if which nodenv > /dev/null; then
|
||||
eval "$(nodenv init --no-rehash -)"
|
||||
(nodenv rehash &) 2> /dev/null
|
||||
fi
|
||||
|
||||
if which pyenv > /dev/null; then
|
||||
eval "$(pyenv init --no-rehash -)"
|
||||
(pyenv rehash &) 2> /dev/null
|
||||
if which rtx > /dev/null; then
|
||||
eval "$(rtx activate zsh)"
|
||||
fi
|
||||
|
||||
if [ -f $HOME/.orbstack/shell/init.zsh ]; then
|
||||
|
|
|
@ -80,6 +80,14 @@ function git-root {
|
|||
fi
|
||||
}
|
||||
|
||||
function install-ruby {
|
||||
if [ $# -eq 0 ]; then
|
||||
echo Usage: install-ruby RUBY_VERSION
|
||||
else
|
||||
ruby-build $1 $HOME/.rubies/$1
|
||||
fi
|
||||
}
|
||||
|
||||
function password-generator {
|
||||
if [ -x "$(command -v openssl)" ]; then
|
||||
password=$(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue