zshrc: Fix function fir() for Debian.
authorJoerg Woelke <joewoe@fsmail.de>
Sat, 5 Sep 2009 19:09:34 +0000 (21:09 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Sat, 5 Sep 2009 19:16:43 +0000 (21:16 +0200)
As firefox is called iceweasel under Debian, the '-a' option
won't find a "firefox" window. Additionally, if there is no
firefox instance, just start a new one.

etc/zsh/zshrc

index c30b112..f7cc96a 100644 (file)
@@ -3288,7 +3288,11 @@ disassemble(){
 }
 #f5# Firefox remote control - open given URL
 fir() {
-    firefox -a firefox -remote "openURL($1)"
+    if [ -e /etc/debian_version ]; then
+        firefox -a iceweasel -remote "openURL($1)" || firefox ${1}&
+    else
+        firefox -a firefox -remote "openURL($1)" || firefox ${1}&
+    fi
 }
 #f5# Create Directoy and \kbd{cd} to it
 mcd() {