From e81e770f7b7e6055fbd81bb5d1db635fb46ac7cc Mon Sep 17 00:00:00 2001 From: Joerg Woelke Date: Sat, 5 Sep 2009 21:09:34 +0200 Subject: [PATCH] zshrc: Fix function fir() for Debian. 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c30b112..f7cc96a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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() { -- 2.1.4