I'm using awesome 3.5.9 in Debian Testing. /bin/bash is my user's shell. My ~/.profile reads

if [ -n "$BASH_VERSION" ]; then
  # include .bashrc if it exists
  if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"

And in my ~/.bashrc I have edited my $PATH to contain some custom directories.

In awesome's rc.lua, I have set up the prompt like this:

awful.key({ modkey }, "r",
  function ()
    awful.prompt.run({ prompt = "Run: " },
      awful.util.spawn, awful.completion.bash)

However, the auto-completion in the awesome prompt doesn't consider the custom directories I have in my $PATH.

What am I doing wrong?

  • See superuser.com/questions/637799/… – Interesting... Oct 28 '16 at 22:50
  • Thanks, but that answer refers to zsh, and recommends using .zshenv to set the $PATH. Bash doesn't have this file. I found references to a BASH_ENV variable which I can use to give the name of a file to be sourced in non-interactive shells, but I have no clue where to set this ... – andreas-h Oct 29 '16 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.