Skip to content

Instantly share code, notes, and snippets.

@ssaunier
Last active August 4, 2017 14:21
Show Gist options
  • Save ssaunier/2460a88b4458d9084753e174f83dfdbc to your computer and use it in GitHub Desktop.
Save ssaunier/2460a88b4458d9084753e174f83dfdbc to your computer and use it in GitHub Desktop.
Add a new folder to Sublime current project window, from the command line. (same as Project > Add folder to project)

First check you have sublime as a oh-my-zsh plugin:

$ cat ~/.zshrc | grep plugins=
plugins=(gitfast rbenv last-working-dir common-aliases sublime zsh-syntax-highlighting history-substring-search)
# 👆 that's mine

Restart your terminal.

You can now do:

$ cd ~/code/lewagon/<project>
$ subl --add .

# or just this (from any directory):
$ subl --add ~/code/lewagon/<project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment