File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,29 @@ actions="Alt+a"
13
13
help_color=" #334433"
14
14
15
15
# source global config
16
- source /etc/buku.config
16
+ if [[ -f /etc/buku_run.config ]]
17
+ then
18
+ source /etc/buku_run.config
19
+ fi
17
20
18
21
# source local config:
19
- source $HOME /.config/buku_run/config
22
+ if [[ -z $XDG_CONFIG_DIR ]]
23
+ then
24
+ if [[ -f $HOME /.config/buku_run/config ]]
25
+ then
26
+ source $HOME /.config/buku_run/config
27
+ else
28
+ echo " User config file \'~/.config/buku_run/config\' not found. using global config"
29
+ fi
30
+ else
31
+ if [[ -f " ${XDG_CONFIG_DIR} /buku_run/config" ]]
32
+ then
33
+ source " ${XDG_CONFIG_DIR} /buku_run/config"
34
+ else
35
+ echo " User config file \'~/.config/buku_run/config\' not found. using global config"
36
+ fi
37
+ fi
38
+
20
39
21
40
main () {
22
41
HELP=" Welcome to Buku. Use <span color='${help_color} '>${new_bookmark} </span> to add a new Bookmark
You can’t perform that action at this time.
0 commit comments