From b8337f2762cf93edf755b1feb85aa83a7bbdeffc Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 2 Apr 2026 16:27:15 +0200 Subject: [PATCH] cb-Alias: Linux-kompatibel via xclip (macOS bleibt pbpaste/pbcopy) --- zsh/.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index d3467a6..1e49040 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -75,7 +75,11 @@ alias gp='git push' alias gl='git log --oneline --graph --decorate' alias gitcheck="~/git-check-all.sh --short" alias gitupdate="~/git-update-all.sh" -alias cb="pbpaste | sed 's/^ //' | pbcopy" +if [[ "$OSTYPE" == "darwin"* ]]; then + alias cb="pbpaste | sed 's/^ //' | pbcopy" +else + alias cb="xclip -selection clipboard -o | sed 's/^ //' | xclip -selection clipboard -i" +fi # Ubuntu-Kompatibilitaet: fd und bat heissen dort anders command -v fdfind &>/dev/null && ! command -v fd &>/dev/null && alias fd='fdfind' command -v batcat &>/dev/null && ! command -v bat &>/dev/null && alias bat='batcat'