SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-04-13 05:44:52

mikhou
#! CrunchBanger
Registered: 2011-06-12
Posts: 147

How to map shortcut commands for longer processes [SOLVED]

This feels like a simple question and should be a simple find, but I cannot find the answer.  I know that I have read here before where someone said that they mapped shortcut commands for longer processes.  For example:

"upg" would be a shortcut for "sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade"

But for the life of me, I have searched and can't find that.  Can anybody tell me how to do this, and is this a Linux thing, an OB thing, or an xfce thing?

mikhou

Last edited by mikhou (2012-04-13 07:16:27)

Offline

Be excellent to each other!

#2 2012-04-13 06:28:42

noman
Member
Registered: 2012-03-06
Posts: 37

Re: How to map shortcut commands for longer processes [SOLVED]

Alias is what you're looking for. alias upg='blablabla' for what you wrote up there. To make it permanent you add it to ~/.bashrc.

Oh, and it's a Unix thing, I'm pretty sure.

Last edited by noman (2012-04-13 06:31:17)

Offline

#3 2012-04-13 07:15:47

mikhou
#! CrunchBanger
Registered: 2011-06-12
Posts: 147

Re: How to map shortcut commands for longer processes [SOLVED]

That's it!  I knew that it was something simple.  Can't believe that I couldn't search and find it.

mikhou

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo