7s8bzw
Last Updated: February 25, 2016
·
1.339K
· hauleth

Make life faster - one letter aliases

I don't like hit too much my keyboard, so lets reduce it (I'm using fish-shell, but here I give you with POSIX syntax, I think thet fish users are smart enough to rewrite it to their usage):

alias g=git
alias e=$EDITOR
alias b=bundle
alias be=bundle exec
alias brake=bundle exec rake
alias -=cd -

Also some Git aliases should be nice:

b         branch
ca        commit --amend --reuse-message=HEAD
ci        commit
cl        clone
co        checkout
com       checkout master
cp        cherry-pick
d         difftool
f         fetch
lg        log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lga       log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all
rollback  reset --hard HEAD@{1}
st        status -sb
ui        !giggle

Now, i.e. to checkout to master you stroke only 6 chars instead of 20. Nice :)

EDIT:
For more of my great Git aliases search here and here

2 Responses
Add your response

6066

If you use zsh the last alias is not needed. In zsh you can type the name of any folder as an executable and it will be executed as "cd folder"

over 1 year ago ·
6157

@enlavin I use fish and there it work that way also but not for -, so I write it down also.

over 1 year ago ·
Filed Under