From 13a0f0b2c72a6e41331df1fe663ffe66149f4c3c Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Wed, 22 Jul 2026 10:45:19 +0200 Subject: [PATCH] Add cdiff and safe scp alias --- zsh/.mac_config.zsh_mac.example | 6 +++++- zsh/.zshrc | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/zsh/.mac_config.zsh_mac.example b/zsh/.mac_config.zsh_mac.example index 74ca4ac..7341fd2 100644 --- a/zsh/.mac_config.zsh_mac.example +++ b/zsh/.mac_config.zsh_mac.example @@ -30,5 +30,9 @@ fi export DYLD_FALLBACK_LIBRARY_PATH="$HOMEBREW_PREFIX/lib:${DYLD_FALLBACK_LIBRARY_PATH}" export GI_TYPELIB_PATH="$HOMEBREW_PREFIX/lib/girepository-1.0:${GI_TYPELIB_PATH}" export PKG_CONFIG_PATH="$HOMEBREW_PREFIX/lib/pkgconfig:$HOMEBREW_PREFIX/share/pkgconfig:${PKG_CONFIG_PATH}" -alias code="workon claude; claude" +alias claude="workon claude; claude; deactivate" alias python="python3" + +# Tahoe 26 WindowServer bug: windows stay interactive but can't be moved by +# mouse or API until the window-management daemon is restarted (no logout). +alias unstick-windows="killall WindowManager" diff --git a/zsh/.zshrc b/zsh/.zshrc index 7528bea..667005c 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -108,6 +108,7 @@ alias sudo='sudo ' alias ls="ls --color=always" alias cgrep="grep --color=always" +alias cdiff="git diff --color-words --no-index" delzip() { unzip -Z -1 "$@" | xargs -I{} rm -rf {} @@ -124,6 +125,7 @@ fi # Use safecp/safemv from the tools-repo when available (after ~/.local/bin is on PATH) (( $+commands[safecp] )) && alias cp=safecp (( $+commands[safemv] )) && alias mv=safemv +(( $+commands[safescp] )) && alias scp=safescp if [[ -f ~/.ssh/sudo_key ]]; then [[ -e /tmp/sudo-agent.sock ]] || ssh-agent -a /tmp/sudo-agent.sock &> /dev/null