Browse Source

fix clip func for mac

pull/1/head
10sr 12 years ago
parent
commit
e5ee6ba532
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      bashrc

+ 11
- 0
bashrc View File

@@ -298,6 +298,9 @@ catclip(){
if iswindows
then
cat /dev/clipboard | tr -d \\r
elif isdarwin
then
pbpaste
else
xclip -o -selection "clipboard"
fi
@@ -312,6 +315,14 @@ setclip(){
else
cat "$@" | sed -e 's/$/\r/' | tee /dev/clipboard
fi
elif isdarwin
then
if test $# -eq 0
then
pbcopy
else
cat "$@" | pbcopy
fi
else
if test $# -eq 0
then


Loading…
Cancel
Save