Terminal macOS Tricks
1. Config to show branch in Terminal
Open .bash_profile file then add:
1 | parse_git_branch() { |
2. Setup to use subl command in macOS
Run:
1 | sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |
3. Setup to use code command in macOS
In VSCode Window, press command + shift + P to open package install. Type shell to find package Shell Command : Install code in PATH, install and done.
References:
[2]https://www.tunnelsup.com/how-to-open-sublime-text-from-the-command-line-using-mac-osx/