If you're not yet using, I do recommend Robby Russel's oh-my-zsh extension for your terminal. It's a framework to manage your zsh configuration and, if you already decided to install it, just run:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
To add new plugins, just open
~/.zshrc in your favorite text editor, i.e,
code ~/.zshrc 😉 and around the third paragraph you'll find the plugins line. Mine looks like this:
# Which plugins would you like to load? # Standard plugins can be found in ~/.oh-my-zsh/plugins/* # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(git ruby rails yarn bundler docker docker-compose brew)
To get a list of aliases you can grep your alias command, for instance:
➜ alias | grep rails #=> and it should list all your rails shortcuts
# working with branches gcb='git checkout -b' gco='git checkout' gcm='git checkout master' gmom = git merge origin/master # handling changes gaa='git add --all' glol=(beautiful git log) gsta='git stash push' gstaa='git stash apply' gcam='git commit -a -m' gd='git diff' # synchronizing with remote branch ggpull='git pull origin "$(git_current_branch)"' ggpush='git push origin "$(git_current_branch)"' gp='git pull' gf='git fetch'
rc='rails console' rs='rails server' rdm='rake db:migrate' rdr='rake db:rollback' rdrs='rake db:reset' rrg='rake routes | grep' rt='rake test'
dcupd='docker-compose up -d' dcstop='docker-compose stop' dcdn='docker-compose down'
Hope that speeds up your git workflow, even if just by a few seconds 💨
Are you into productivity hot tips for web development? I'm a Brazilian full-stack developer, living and working in Paris, and I regularly share articles like the one you've just read. Follow me on twitter to stay tuned.