My favourite aliases

mrtnrdl

Martin Riedel

Posted on November 12, 2018

My favourite aliases

Inspired by Daniels Blogpost, I had a look in my alias.zsh file, that i use to keep all aliases in one place.

alias for all the aliases

alias aliases="cat ~/.dotfiles/zsh/.zsh/aliases.zsh"
Enter fullscreen mode Exit fullscreen mode

Not sure if you have an alias? Can't remember the specific alias you're looking for? Just aliases and you'll get the list.

git

For my git workflow, i'm relying heavily on aliases to reduce the typing necessary:

alias gc="git commit"
alias gs="git status"
alias gd="git diff"
alias gf="git fetch"
alias gm="git merge"
alias gma="git merge --abort"
alias gr="git rebase"
alias gp="git push"
alias gpf="git push --force-with-lease"
alias gu="git unstage"
alias gg="git graph"
alias gl="git log --pretty --oneline --graph"
alias gA="git add -A"
alias gri="git rebase -i"
alias grc="git rebase --continue"
alias gra="git rebase --abort"
Enter fullscreen mode Exit fullscreen mode

sbt

Currently I'm working with scala and sbt most of the time, and due to that circumstance, I've added several aliases for that.

alias sfmt="sbt scalafmt test:scalafmt sbt:scalafmt"
alias sdt="sbt clean dependencyTree"
alias sdc="sbt clean dependencyCheck"
alias sdu="sbt clean dependencyUpdates"
alias ssg="sbt clean scapegoat"
alias sct="sbt clean test"
Enter fullscreen mode Exit fullscreen mode

weather

Do you know the days, when you barely manage to glimpse the sun? Fear no more - with that alias you're informed about the weather in your <location>!

alias weather="curl http://wttr.in/<location>"
Enter fullscreen mode Exit fullscreen mode

picture credit to kevin ku

💖 💪 🙅 🚩
mrtnrdl
Martin Riedel

Posted on November 12, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

My favourite aliases
alias My favourite aliases

November 12, 2018