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

View File

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