You are not logged in.

#1 2013-08-19 18:43:46

metal-0-1
Member
Registered: 2013-08-11
Posts: 8

Shorten long terminal command in Awesome WM's launcher widget

I do want to execute a long terminal command in launcher widget (Mod4+r). I will have to do it really often so I would like to have a shortcut - I want to type just a short keyword that will point to the full, long command somewhere in config files. I have herd that it is possible to place some functions in bashrc file, but I really dont know how to do this.

For example, I want to press Mod4+r, type in "ranger", and it will automatically execute command: "terminator --command='sudo ranger'"

What should I do?

Offline

#2 2013-08-20 19:05:54

matyilona200
Member
Registered: 2012-06-21
Posts: 77

Re: Shorten long terminal command in Awesome WM's launcher widget

It is called an alias, read this for details.

Offline

Board footer

Powered by FluxBB