README: cb Alias dokumentiert (Clipboard-Bereinigung fuer Claude Code)

This commit is contained in:
rene 2026-03-15 09:30:54 +01:00
parent 94827145c6
commit cb059ad7c4

View file

@ -54,6 +54,16 @@ Pullt alle Repositories (ueberspringt Repos mit lokalen Aenderungen).
gitupdate # alle Repos pullen 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 ## Installation
### Automatisch (via macbook-setup) ### Automatisch (via macbook-setup)
@ -73,6 +83,8 @@ done
# Aliases in ~/.zshrc # Aliases in ~/.zshrc
alias gitcheck="~/git-check-all.sh --short" alias gitcheck="~/git-check-all.sh --short"
alias gitupdate="~/git-update-all.sh" 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 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" alias mac-sync="curl -fsSL https://git.motocamp.de/rene/dotfiles-rene/raw/branch/main/bin/git-sync-all.sh | bash"
``` ```