Skip to content
forked from shenjia/aoeu.sh

"Type less, do more" -- a shell alias sets for Linux/MacOS users ( Dvorak version )

Notifications You must be signed in to change notification settings

Feng1983/aoeu.sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 

Repository files navigation

aoeu.sh

This is a shell alias sets, design for Linux / MacOS users, especially for Dvorak keyboard layout users.

We deal with shell everyday, type same commands around and around.

Sometimes, we create shell scripts to do complex chores. This can avoid us to type repeat commands, but how about the most frequently used commands?

Some commands are very short, such as 'vim' and 'cd ..', but we type it MANY MANY times everyday. They are short, but not enough.

Otherwise, some commands are not short enough, such as 'apt-cache search' and 'ps aux | grep'.

Maybe you think these commands are short enough, but what if you are lack of time? (fixing a bug on product server, for example)

By bind the most frequently used commands to 1 ~ 2 key. That will save lots of time, and our fingers.

Dealing with directories

alias i='cd'           // go in
alias o='cd ..'        // go out
alias a='ls'           // list
alias aa='ls | grep'   // list with filter
alias u='pwd'          // show current location
alias m='mkdir'        // make directory

Dealing with files

alias e='vim'          // edit a file
alias f='find -name'   // find file by name
alias t='tail -f'      // keep watching at a file
alias x='tar zxvf'     // extract compress file

Dealing with packages

alias sh="apt-cache search" // search a package
alias in='apt-get install'  // install a package
alias un='apt-get remove'   // uninstall a package

For MacOS, use "port search | port install | port uninstall" instead.

For Centos, use "yum search | yum install | yum remove" instead.

Dealing with system

alias q='exit'              // exit shell
alias c='clear'             // clear monitor
alias p='ps aux | grep'     // look for process
alias h='e /etc/hosts'      // edit host config

Dealing with aoeu.sh

alias uuu="e /usr/local/bin/aoeu.sh" // update the aoeu.sh
alias eee=". /usr/local/bin/aoeu.sh" // execute the aoeu.sh

Make your own aoeu.sh!

Create your own alias now! Before you set a new alias, type it on shell and make sure it's NOT used.

For example, I'm a web engineer, so I create those alias to do chores:

alias nr='service nginx restart'
alias phpr='service php5-fpm restart'
alias phpi='e /etc/php5/fpm/php.ini'
alias sn='svn st | grep ? | awk '\''{print $2}'\'             
alias sa='svn add `svn st | grep ? | awk '\''{print $2}'\''`' 
alias sr='svn rm --force'                                     
.....                          

About

"Type less, do more" -- a shell alias sets for Linux/MacOS users ( Dvorak version )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%