浏览代码

Do not use alias for setclip and catclip if found

master
10sr 6 年前
父节点
当前提交
ff8372e7b4
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      shrc

+ 7
- 2
shrc 查看文件

@@ -874,7 +874,7 @@ then
alias pbcopy="reattach-to-user-namespace pbcopy"
fi

catclip(){
__catclip(){
if $iswindows
then
cat /dev/clipboard | tr -d \\r
@@ -886,7 +886,7 @@ catclip(){
fi
}

setclip(){
__setclip(){
if test $# -eq 0
then
exec 3<&0
@@ -908,6 +908,11 @@ __EOF__
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 -r -f sjis -t utf8 *
}


正在加载...
取消
保存