Inspired by Daniels Blogpost, I had a look in my
alias.zsh file, that i use to keep all aliases in one place.
alias aliases="cat ~/.dotfiles/zsh/.zsh/aliases.zsh"
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.
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"
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"
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
alias weather="curl http://wttr.in/<location>"
picture credit to kevin ku