DEV Community

Discussion on: Terminal Aliases are Your Friends!

Collapse
 
meg_gutshall profile image
Meg Gutshall

I love it! A very appropriate use of cat GIFs might I add. 😄

A suggestion for you vsopen alias—change it to:

alias vsopen='open code'
Enter fullscreen mode Exit fullscreen mode

It does the same thing, just a little cleaner.

Here's a few more I have that come in handy:

  # Go to top-level directory
  alias top="cd $HOME && cd ../../"

  # Shortcuts
  alias c="clear"
  alias h="history"
  alias be="bundle exec"

  # Negate common typos
  alias cd..="cd .."

  # Homebrew  
  alias pg_start="brew services start postgresql"
  alias pg_stop="brew services stop postgresql"
  alias redis_start="brew services start redis"
  alias redis_stop="brew services stop redis"
Enter fullscreen mode Exit fullscreen mode