| @@ -217,12 +217,6 @@ tmux(){ | |||||
| fi | fi | ||||
| } | } | ||||
| __my_moc_state(){ | |||||
| type mocp >/dev/null 2>&1 || return | |||||
| test "`mocp -Q %state 2>/dev/null`" == PLAY || return | |||||
| printf "$1" "`mocp -Q %title 2>/dev/null`" | |||||
| } | |||||
| mcrypt-stream(){ | mcrypt-stream(){ | ||||
| test $# -eq 2 || return 1 | test $# -eq 2 || return 1 | ||||
| case $1 in | case $1 in | ||||
| @@ -347,6 +341,7 @@ open_file(){ | |||||
| cmd.exe //c start "" "$@" | cmd.exe //c start "" "$@" | ||||
| elif isdarwin | elif isdarwin | ||||
| then | then | ||||
| touch "$@" | |||||
| open "$@" | open "$@" | ||||
| elif islinux | elif islinux | ||||
| then | then | ||||
| @@ -380,6 +375,12 @@ convmv-sjis2utf8-notest(){ | |||||
| convmv -r -f sjis -t utf8 * --notest | convmv -r -f sjis -t utf8 * --notest | ||||
| } | } | ||||
| __my_moc_state(){ | |||||
| type mocp >/dev/null 2>&1 || return | |||||
| test "`mocp -Q %state 2>/dev/null`" == PLAY || return | |||||
| printf "$1" "`mocp -Q %title 2>/dev/null`" | |||||
| } | |||||
| __my_parse_svn_branch() { | __my_parse_svn_branch() { | ||||
| local LANG=C | local LANG=C | ||||
| local svn_url=$(svn info 2>/dev/null | sed -ne 's#^URL: ##p') | local svn_url=$(svn info 2>/dev/null | sed -ne 's#^URL: ##p') | ||||