#!/bin/bash # https://stackoverflow.com/a/2108540 tmp=:$PATH: del=/usr/local/bin tmp=${tmp//:$del:/:} tmp=${tmp%:} tmp=${tmp#:} PATH=$tmp # -allow-downgrade good enough? #rm -f {/p/c/firefox-main-profile,/p/c/firefox-main-profile,/p/c/firefox-vpn2-profile,/mnt/z/firefox-vpn-profile}/compatibility.ini # --allow-downgrade # ^ useful option for when the browser refuses to run, but it always # causes a new browser window to open, even if normally it would open a # new tab # prefer abrowser if type -P firefox &>/dev/null; then abrowser "$@" else firefox "$@" fi