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 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' # synchronizing with remote branch ggpull='git pull origin "$(git_current_branch)"' ggpush='git push origin "$(git_current_branch)"'
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 💨
If you have any questions or suggestions, leave a comment below. And if you want to contribute to building the future of healthcare, Doctolib is hiring Ruby on Rails developers in Paris, Berlin, Nantes, and more yet to come...