Add cdiff and safe scp alias

This commit is contained in:
Fabian Ising
2026-07-22 10:45:19 +02:00
parent cc196aec46
commit 13a0f0b2c7
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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"
+2
View File
@@ -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