Terminal Shortcuts

Edit your bash profile file

vi ~/.bash_profile

Add this to the end of the file :

goAndListAll() {
clear
cd $1
ls -la
}

goAndList() {
clear
cd $1
ls -l
}
alias l=’clear && ls -l’
alias la=’clear && ls -la’
alias cl=goAndList
alias cla=goAndListAll

gitCommit() {
git commit -m “$1”
}

gitAddCommitPush() {
git add .
git commit -m “$1”
git push
}

alias ga=’git add .’
alias gc=gitCommit
alias gp=’git push’
alias gcp=gitAddCommitPush
alias gs=’git status’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s