| @@ -874,7 +874,7 @@ then | |||||
| alias pbcopy="reattach-to-user-namespace pbcopy" | alias pbcopy="reattach-to-user-namespace pbcopy" | ||||
| fi | fi | ||||
| catclip(){ | |||||
| __catclip(){ | |||||
| if $iswindows | if $iswindows | ||||
| then | then | ||||
| cat /dev/clipboard | tr -d \\r | cat /dev/clipboard | tr -d \\r | ||||
| @@ -886,7 +886,7 @@ catclip(){ | |||||
| fi | fi | ||||
| } | } | ||||
| setclip(){ | |||||
| __setclip(){ | |||||
| if test $# -eq 0 | if test $# -eq 0 | ||||
| then | then | ||||
| exec 3<&0 | exec 3<&0 | ||||
| @@ -908,6 +908,11 @@ __EOF__ | |||||
| exec 3<&- | exec 3<&- | ||||
| } | } | ||||
| # Now Homebrew 10sr/pkg/bin provides these commands: | |||||
| # Fallback to aliases if commands are not installed yet | |||||
| which catclip >/dev/null || alias catclip=__catclip | |||||
| which setclip >/dev/null || alias setclip=__setclip | |||||
| convmv_sjis2utf8_test(){ | convmv_sjis2utf8_test(){ | ||||
| convmv -r -f sjis -t utf8 * | convmv -r -f sjis -t utf8 * | ||||
| } | } | ||||