Browse Source

touch file when open_file in darwin

pull/1/head
10sr 12 years ago
parent
commit
73c339f77c
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      bashrc

+ 7
- 6
bashrc View File

@@ -217,12 +217,6 @@ tmux(){
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(){
test $# -eq 2 || return 1
case $1 in
@@ -347,6 +341,7 @@ open_file(){
cmd.exe //c start "" "$@"
elif isdarwin
then
touch "$@"
open "$@"
elif islinux
then
@@ -380,6 +375,12 @@ convmv-sjis2utf8-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() {
local LANG=C
local svn_url=$(svn info 2>/dev/null | sed -ne 's#^URL: ##p')


Loading…
Cancel
Save