Skip to content

Commit

Permalink
Merge pull request #377 from itsHanibee/master
Browse files Browse the repository at this point in the history
Add community support for the Zen Browser
  • Loading branch information
graysky2 authored Aug 21, 2024
2 parents 7ae6118 + fb87ff8 commit a698846
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions contrib/zen
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
if [[ -d "$HOME"/.zen ]]; then
index=0
PSNAME="$browser"
while read -r profileItem; do
if [[ $(echo "$profileItem" | cut -c1) = "/" ]]; then
# path is not relative
DIRArr[$index]="$profileItem"
else
# we need to append the default path to give a
# fully qualified path
DIRArr[$index]="$HOME/.zen/$profileItem"
fi
(( index=index+1 ))
done < <(grep '[Pp]'ath= "$HOME"/.zen/profiles.ini | sed 's/[Pp]ath=//')
fi

check_suffix=1

0 comments on commit a698846

Please sign in to comment.