awesome

Welcome to awesome bug tracking system.
Tasklist

FS#756 - Alias support in prompt box

Attached to Project: awesome
Opened by Tue Abrahamsen (twoface) - Wednesday, 07 April 2010, 13:20 GMT
Task Type Feature Request
Category Widgets
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version git/master
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

It would be nice if aliases defined .bashrc (and for other shells as well) could be autocompleted and run from the prompt box.
This task depends upon

Comment by Uli Schlachter (psychon) - Wednesday, 07 April 2010, 14:33 GMT
Non-interactive shells don't read ~/.bashrc, but I just found this in "man bash":

When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it
appears there, and uses the expanded value as the name of a file to read and execute. Bash behaves as if the following command were executed:
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
but the value of the PATH variable is not used to search for the file name

So, as a quick hack, you could set BASH_ENV="$HOME/.bashrc" ; export BASH_ENV in your .xsession before starting awesome (assuming you start it from your xsession, if you start it via some other mechanism, you have to do sth else).

Loading...