You are not logged in.

#1 2009-01-03 16:49:27

gladstone
Member
Registered: 2009-01-03
Posts: 74

awesome 3 run prompt with bash aliases

I'm using some aliases in .bashrc to launch a few apps with specific parameters. However, these are not picked up by awesome's run prompt (mod4 + F1).

Apparently this is because awesome's run prompt is a non-interactive bash shell, which uses different start-up files: Bash-Startup-Files.

Can it be made to honour those aliases?

Offline

#2 2009-03-15 22:23:56

gladstone
Member
Registered: 2009-01-03
Posts: 74

Re: awesome 3 run prompt with bash aliases

I've since moved onto dwm and dmenu (but the same method will work in awesome); I didn't find a way for bash aliases to be recognized, but instead, you can convert the aliases to shell scripts and add their containing folder to your $path, which should then be picked up by dmenu/awesome.

For example:

1. Create a folder in your home dir called

bin

(can be whatever you like)

2. Add bin to your $path by adding

export PATH=$HOME/bin:$PATH

to your .bashrc

3. Create your launcher script (within bin and make it executable (chmod 0755))

Reference: Re: [dwm] .zshrc alias dmenu

Last edited by gladstone (2009-03-15 22:27:09)

Offline

Board footer

Powered by FluxBB