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'