cb-Alias: Linux-kompatibel via xclip (macOS bleibt pbpaste/pbcopy)
This commit is contained in:
parent
4c2d7db69b
commit
b8337f2762
1 changed files with 5 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue