From f040a97002fc05cc21c8d1851e0672f44a31bf8c Mon Sep 17 00:00:00 2001 From: Damien Leone Date: Wed, 13 Aug 2008 20:14:31 +0200 Subject: [PATCH] awesomerc: Change prompt.run parameters so it can handle history Signed-off-by: Damien Leone Signed-off-by: Julien Danjou --- awesomerc.lua.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index a97df566..2b7554f7 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -68,9 +68,6 @@ beautiful.init(theme_path) -- to inform it about colors we want it to draw. awful.beautiful.register(beautiful) --- Enable prompt history -awful.prompt.history.set() - -- Uncomment this to activate autotabbing -- tabulous.autotab_start() -- }}} @@ -240,11 +237,11 @@ keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, - -- Prompt keybinding({ modkey }, "F1", function () - awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash) - end):add() + awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash, +os.getenv("HOME") .. "/.cache/awesome_history") end):add() keybinding({ modkey }, "F4", function () - awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval) - end):add() + awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval, awful.prompt.bash, +os.getenv("HOME") .. "/.cache/awesome_history_eval") end):add() keybinding({ modkey, "Ctrl" }, "i", function () if mypromptbox.text then mypromptbox.text = nil