You are not logged in.
Pages: 1
I'd like to pre-process my command lines before/while bash interprets them.
For example, I'd like
$ firefox
to become (bash)
$ firefox &>> log &
I'd probably like to keep a file somewhere were I define which replacements should take place.
The thing is, shells do all sorts of cool things: a short user-entered command like
$ echo $PWD
is converted to something which may look like
$ /bin/echo /home/peets
before it is executed.
I'd like to intercept the pre-processed statement, modify it, then send it to be executed.
Is this possible?
Motivation can be found in the thread on a graphics terminal
Offline
For the firefox example, you could put 'alias firefox='firefox &>> log &' in ~/.bashrc, or are you after something more?
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
I have a few aliases, but I'd like something smarter.
Well, actually, managing a file of "replacements" is almost exactly the same as managing a list of aliases. I think I'll use that method.
Offline
Pages: 1