Hi everyone.
While porting awesome 3 to FreeBSD I found that the bash's completion files is
an hardcoded path ("/etc/bash_completion"). As my sens it would be clever to
use "@SYSCONFDIR@/bash_completion", since it will still work fine on GNU/Linux
and help porting awesome to OS without bash in base (like *BSD).I've attached the patch ;) Have a nice day. Regards, Perrin Alexandre.
From 85413ba494a15de57f6c0fdadbc0fa0b308fd4fd Mon Sep 17 00:00:00 2001
From: Perrin "kAworu" Alexandre <kaworu(a)kaworu,ch>
Date: Mon, 5 Jan 2009 18:07:06 +0100
Subject: [PATCH] use SYSCONFDIR to find bash's completion file.
Signed-off-by: Perrin "kAworu" Alexandre <kaworu(a)kaworu,ch>
---
lib/awful/completion.lua.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/awful/completion.lua.in b/lib/awful/completion.lua.in
index e4d54f3..accbec1 100644
--- a/lib/awful/completion.lua.in
+++ b/lib/awful/completion.lua.in
@@ -16,7 +16,7 @@ module("awful.completion")
-- mapping of command/completion function
local bashcomp_funcs = {}
-local bashcomp_src = "/etc/bash_completion"
+local bashcomp_src = "@SYSCONFDIR@/bash_completion"
--- Enable programmable bash completion in awful.completion.bash at the price of
-- a slight overhead
--
1.6.0.5
signature.asc
Description: This is a digitally signed message part.
