From 2809c08f34a03cebfc9fb9b9a1d2661ec80ca269 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 9 Oct 2012 20:47:23 +0200 Subject: Add support for config file Signed-off-by: Florian Pritz --- fb.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fb.in') diff --git a/fb.in b/fb.in index 6afab40..8e74deb 100644 --- a/fb.in +++ b/fb.in @@ -28,6 +28,15 @@ case "`uname -s`" in ;; esac +if [ -z "$XDG_CONFIG_HOME" ]; then + XDG_CONFIG_HOME="$HOME/.config" +fi + +config_file="$XDG_CONFIG_HOME/fb-client/config" +if [ -e "$config_file" ]; then + . "$config_file" +fi + version="@VERSION@" delete= extension="" -- cgit v1.2.3-24-g4f1b