nace186

Platinum Member
Sep 16, 2006
2,356
0
76
For example, I have an alias set up for emacs:

alias e 'emacs'

So whenever I open a file: e test.txt, would translate into emacs text.txt

I was wondering if it's possible to set the alias so that when I enter e test.txt, it would translate to "emacs test.txt &" ?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Assuming you're talking about aliases in bash, you might need to switch to a function to be able to use variables.