From a2e2018fe651d9343eeb79d1ff0a74a94ca8f390 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 21 Aug 2012 12:47:56 +0900 Subject: [PATCH] update o --- bashrc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bashrc b/bashrc index b7fcf52..97260ba 100755 --- a/bashrc +++ b/bashrc @@ -331,9 +331,9 @@ _open_file(){ elif islinux then if null type pcmanfm; then - LC_MESSAGES= pcmanfm "$@" & + LC_MESSAGES= pcmanfm "$@" else - LC_MESSAGES= xdg-open "$@" + LC_MESSAGES= xdg-open "$@" & fi else cat "$@" @@ -347,12 +347,7 @@ o(){ else for f in "$@" do - if test -d "$f" - then - _open_file "$f" - else - _open_file "$f" - fi + _open_file "$f" done fi }