fix(docs): Locate example configs using install prefix

This commit is contained in:
Michael Carlberg 2016-05-24 23:52:36 +02:00
parent 40524979d0
commit c8a195f5f0
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ The following code will get you started:
$ cd ${XDG_CONFIG_HOME:-$HOME/.config}/lemonbuddy
# Copy sample config for the running wm (uses a wm agnostic config as fallback)
$ __wm=$(pgrep -l "(bspwm|i3)")
$ cp /usr/share/examples/lemonbuddy/config${__wm:+.${__wm##* }} config
$ __wm=$(pgrep -l "(bspwm|i3)"); __prefix=$(which lemonbuddy)
$ cp "${__prefix%%/bin*}/share/examples/lemonbuddy/config${__wm:+.${__wm##* }}" config
# Launch the bar
# (where "example" is the name of the bar as defined by [bar/NAME] in the config)