|
|
|
|
|
by capitainenemo
1201 days ago
|
|
I'm just used to keeping all my aliases together for easy location with alias command and I like having ones with arguments with the others. Aside from that, no benefit really that I can think of. So yes, to be clear to anyone else you can just put: wiki(){ w3m -F "https://en.wikipedia.org/w/index.php?search=${1}&title=Special:Search&ns0=1"; }
in your .bashrc - and if you're me you just forget how you defined it and you have to cat it every once in a while :)Oh, and you might be entertained by this silly alias adapted from an IOCC entry... $ cstdin
printf("Hello World\n");
Hello World
alias cstdin='gcc -pedantic -ansi -Wall -o ~/.stdin ~/.stdin.c -lm && ~/.stdin'
$ cat ~/.stdin.cc
#include <stdio.h>
<snip many headers>
int main(int argc, char **argv)
{
#include </dev/tty>
return 0;
}
I'm sure it would also make way more sense as a dedicated script. I have a C++ one in there too. |
|