diff options
Diffstat (limited to 'firefox-profile')
-rwxr-xr-x | firefox-profile | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/firefox-profile b/firefox-profile deleted file mode 100755 index 34380f2..0000000 --- a/firefox-profile +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# Wrapper around firefox -# - -# Parameters -BASE="$HOME/.mozilla/firefox" -PROFILES="$BASE/profiles" - -# Check -if ! which firefox &> /dev/null; then - echo "Please install firefox" - exit 1 -fi - -# Dispatch -if [ ! -z "$1" ] && [ "$1" == "private" ]; then - firefox -private-window -elif [ ! -z "$1" ]; then - if [ ! -d "$PROFILES/$1" ]; then - firefox -no-remote -CreateProfile "$1 $PROFILES/$1" - - if [ -d "$PROFILES/template" ] && [ "$1" != "template" ]; then - rm -rf $PROFILES/$1 && cp -a $PROFILES/template $PROFILES/$1 - fi - fi - - firefox -p $1 -new-instance & -else - firefox --profilemanager -new-instance & -fi |