LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adding commands? (https://www.linuxquestions.org/questions/linux-newbie-8/adding-commands-127621/)

megaman 12-20-2003 02:52 PM

adding commands?
 
Is there a way to assign new commands to software, say for instance if I'd like to start xmms by hitting Alt+F2 and typing "music" instead of "xmms"
or if you install new software without a command and want to assign it your own one?

michaelk 12-20-2003 03:19 PM

Use the alias command. I'm not a slack user but for Mandrake I add them to the users .bashrc file. It is hidden file located in the users home directory.

http://campuscgi.princeton.edu/man?alias#sect6
http://mirrors.ccs.neu.edu/cgi-bin/u...an-cgi?alias+1

slakmagik 12-20-2003 03:57 PM

If you mean Alt-F2 from a GUI (w/stock xmms, I assume so) your window manager should have some keyboard configuration capability. And yeah, either aliases in ~/.bashrc or symlinks, and so on.

What kind of software doesn't have a command, though? (That sentence hurts my head to even type.) That'd be a neat trick. :)


All times are GMT -5. The time now is 11:48 PM.