update
This commit is contained in:
parent
e4034179e0
commit
1bde1b7ba2
@ -27,12 +27,20 @@ esac
|
||||
gtkbookmarks() {
|
||||
BOOKMARKS="$HOME/.gtk-bookmarks"
|
||||
if [[ -s "$BOOKMARKS" ]]; then
|
||||
case $LANG in
|
||||
pl*)
|
||||
GTK_BOOKMARKS="Zakładki GTK"
|
||||
;;
|
||||
*)
|
||||
GTK_BOOKMARKS="GTK Bookmarks"
|
||||
;;
|
||||
esac
|
||||
while read -r line
|
||||
do
|
||||
uri=$(echo $line | cut -b 8- | cut -d' ' -f1 | sed 's/%20/ /g')
|
||||
dirs+=("${line#* },^pipe(jgbrowser \"${uri}\")")
|
||||
done <"$BOOKMARKS"
|
||||
printf "%b\n" "^sep(Zakładki GTK)"
|
||||
printf "%b\n" "^sep($GTK_BOOKMARKS)"
|
||||
printf '%s\n' "${dirs[@]}"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user