You are not logged in.

#1 2009-07-03 02:53:32

geo909
Member
Registered: 2008-09-07
Posts: 309

dmenu and bashrc entries

Hello all,

I am using the dwm window manager and of course dmenu.
I was wondering if there is a way to make dmenu "see" the aliases
of my .bashrc file..

Or at least if I could copy-paste them in some file that dmenu
reads to generate its entries..

Do you have any idea how to do this?

Thanks a lot in advance..

Offline

#2 2009-07-03 06:39:56

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: dmenu and bashrc entries

I don't believe it'll ever be able to read aliases as these are built-in features of the bash program.  However, it would be trivial to create bash scripts by the same name and simply include the command in the script.  Drop them all in ~/bin and add that dir to your $PATH in ~/.bashrc, like so:

export PATH=$PATH:~/bin             # add ~/bin to PATH

thayer williams ~ thayerwilliams.ca

Offline

#3 2009-07-03 06:59:35

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,006
Website

Re: dmenu and bashrc entries

I agree with thayer.
Alternatively, you could look into bashrun.  It's a launcher based on a very small bash command line, so you get all bash features like history, aliases, fuctions etc.  But it's slower then dmenu_run


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#4 2009-07-04 21:16:08

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: dmenu and bashrc entries

Thanks for the suggestions! I will try bashrun, if I don't like it I will go with what thayer said..

Offline

#5 2012-12-30 18:01:29

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: dmenu and bashrc entries


You can like linux without becoming a fanatic!

Offline

Board footer

Powered by FluxBB