Sample Header Ad - 728x90

access shell alias with dmenu

0 votes
2 answers
408 views
I have a collection of bash commands (one liners) that I use on a regular basis to open new shells or start programs with a given set of arguments. As I use dmenu, I'd like to be able to use those commands from my shell and from dmenu. So defining an alias in my .bashrc isn't enough, I have to put these commands in a dedicated file. The file needs then to be executable and stored in a $PATH known to dmenu. If I do so, the alias becomes useless because the shell will find the executable. But that means I have to create one file per command. It's annoying. Is there a way to store all those commands in one file (or at least in a more convenient way) so that they can be accessed via shell and dmenu? Maybe something like an alias file read by dmenu...
Asked by PinkFloyd (439 rep)
Apr 2, 2024, 07:32 PM
Last activity: Apr 2, 2024, 08:56 PM