remove current_profile function
This commit is contained in:
parent
1b07537055
commit
ebcf5c9b1e
|
@ -5,13 +5,6 @@ FIREFOXFOLDER=~/.mozilla/firefox
|
||||||
PROFILENAME=""
|
PROFILENAME=""
|
||||||
THEME=DEFAULT
|
THEME=DEFAULT
|
||||||
|
|
||||||
# Determine firefox profile being currently used programatically
|
|
||||||
# credits: https://stackoverflow.com/questions/57526217/
|
|
||||||
function current_profile() {
|
|
||||||
pgrep firefox | xargs -I{} lsof -p {} 2>/dev/null | grep .parentlock |
|
|
||||||
awk '{for(i=9;i<=NF;++i)printf $i""FS ; print ""}' | cut -d'/' -f6
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Get options.
|
# Get options.
|
||||||
while getopts 'f:p:g:t:h' flag; do
|
while getopts 'f:p:g:t:h' flag; do
|
||||||
|
|
Loading…
Reference in New Issue