From: Joerg Woelke Date: Sat, 5 Sep 2009 19:09:34 +0000 (+0200) Subject: zshrc: Fix function fir() for Debian. X-Git-Tag: v0.3.75~5 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=e81e770f7b7e6055fbd81bb5d1db635fb46ac7cc;hp=4962cc96dbd7d7b253f9e65d495161ae27a08b70;p=grml-etc-core.git 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. --- 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() {