diff --git a/README.md b/README.md index e344c48..5f7d038 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,16 @@ Pullt alle Repositories (ueberspringt Repos mit lokalen Aenderungen). gitupdate # alle Repos pullen ``` +### cb - Clipboard bereinigen + +Entfernt die 2 fuehrenden Leerzeichen pro Zeile aus der Zwischenablage, die Claude Code bei der Terminal-Ausgabe einfuegt. Nuetzlich beim Kopieren mehrzeiliger Befehle oder Codeblocks. + +```bash +cb # Zwischenablage bereinigen, dann mit Cmd+V einfuegen +``` + +Verwendet `pbpaste`/`pbcopy` auf macOS und `xclip` auf Linux. + ## Installation ### Automatisch (via macbook-setup) @@ -73,6 +83,8 @@ done # Aliases in ~/.zshrc alias gitcheck="~/git-check-all.sh --short" alias gitupdate="~/git-update-all.sh" +alias cb="pbpaste | sed 's/^ //' | pbcopy" # macOS +alias cb="xclip -selection clipboard -o | sed 's/^ //' | xclip -selection clipboard -i" # Linux alias gitsync="~/git-sync-all.sh" alias mac-sync="curl -fsSL https://git.motocamp.de/rene/dotfiles-rene/raw/branch/main/bin/git-sync-all.sh | bash" ```