From c008496828f3bc87897d005fcbf4fd5c53999a32 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Fri, 10 Jul 2015 03:32:17 +0200 Subject: [PATCH] added mod4+z for editing .zshrc and PATH fix --- .config/awesome/rc.lua | 2 ++ .zshrc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 71a9c642..0b34bd9c 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -413,6 +413,8 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "b", function() awful.util.spawn("/usr/bin/chromium") end), awful.key({ modkey }, "c", function() awful.util.spawn(editor_cmd .. " " .. awesome.conffile) end), + awful.key({ modkey }, "z", function() + awful.util.spawn(editor_cmd .. " " .. os.getenv("HOME") .. "/.zshrc") end), awful.key({ modkey }, "y", function() awful.util.spawn("/usr/bin/thunar") end), -- Standard program diff --git a/.zshrc b/.zshrc index a9984e02..e53d0ad3 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,5 @@ # Extend my $PATH to $PATH/bin -export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH:$HOME/bin +export PATH=$HOME/bin:$PATH # Export the $EDITOR and $TERMINAL export EDITOR=/usr/bin/vim