From 60eaa1bad5882907a1c2fef6d8e0eba7567fa050 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Wed, 9 Sep 2026 02:22:23 +0800 Subject: [PATCH] chore: move mise to standard script blocks. --- .bashrc | 4 ++++ .bashrc.local | 4 ---- .zshrc | 4 ++++ .zshrc.local | 4 ---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.bashrc b/.bashrc index 2e16911..eed7145 100644 --- a/.bashrc +++ b/.bashrc @@ -36,6 +36,10 @@ else alias ssh="ssh -C -e none" fi # +if command -v mise > /dev/null; then + eval "$(mise activate bash)" +fi +# if [[ -x /opt/local/bin/gtelnet ]]; then alias "t=gtelnet" else diff --git a/.bashrc.local b/.bashrc.local index b3654e3..698d61e 100644 --- a/.bashrc.local +++ b/.bashrc.local @@ -9,10 +9,6 @@ alias update="(cd ~/git; make all)" [[ -s /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash [[ -s /usr/share/doc/fzf/examples/key-bindings.bash ]] && source /usr/share/doc/fzf/examples/key-bindings.bash # -if command -v mise > /dev/null; then - eval "$(mise activate bash)" -fi -# # sdcv if [[ command -v > /dev/null ]]; then alias de="sdcv" diff --git a/.zshrc b/.zshrc index 3d156f4..4dc1179 100644 --- a/.zshrc +++ b/.zshrc @@ -37,6 +37,10 @@ else alias "ssh=ssh -C -e none" fi # +if command -v mise > /dev/null; then + eval "$(mise activate zsh)" +fi +# if [[ -x /opt/local/bin/gtelnet ]]; then alias "t=gtelnet" else diff --git a/.zshrc.local b/.zshrc.local index ddf3825..3bab51d 100644 --- a/.zshrc.local +++ b/.zshrc.local @@ -13,10 +13,6 @@ alias gb0="grok-bwrap \$(which grok) --yolo" alias oc0="opencode-bwrap \$(which opencode) --yolo" alias update="(cd ~/git; make all)" # -if command -v mise > /dev/null; then - eval "$(mise activate zsh)" -fi -# if command -v sdcv > /dev/null; then alias de="sdcv" fi