# HG changeset patch # User Zeger Van de Vannet # Date 1704700170 -3600 # Node ID 8a929c957d05ce2d694594c37f274cbad4c29107 # Parent b0924ed8b0e1bbd837a85761b12732fcb90bad3b feat: check if rtx can be found diff -r b0924ed8b0e1 -r 8a929c957d05 dot_zshrc --- a/dot_zshrc Wed Feb 14 18:48:05 2024 +0100 +++ b/dot_zshrc Mon Jan 08 08:49:30 2024 +0100 @@ -238,6 +238,10 @@ fi } +function try { + while "$@"; do :; done +} + # Suffix aliases alias -s py=nvim alias -s sv=nvim @@ -316,8 +320,10 @@ [ -f ~/.zshrc.local ] && source ~/.zshrc.local -eval "$($HOME/bin/rtx activate zsh)" -eval "$($HOME/bin/rtx hook-env)" +if [ -f "$HOME/bin/rtx" ]; then + eval "$($HOME/bin/rtx activate zsh)" + eval "$($HOME/bin/rtx hook-env)" +fi export SUDO_EDITOR=$(which hx) eval "$(direnv hook zsh)"