bookmark_borderDeveloper Setting – Mac

Contents

  1. Add Visual Studio Code path for Mac
  2. Moving from zsh to bash or bash to zsh: Terminal change

Add Visual Studio Code path for Mac

Verify Mac:

Terminal – Preferences – General – Shells open with Command is /bin/bash or Terminal – Preferences – General – Shells open with Command is /bin/zsh

https://anote.dev/moving-from-zsh-to-bash-terminal-change/
vi ~/.bash_profile
  • with bash
vi ~/.zprofile
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

open VScode with code . command

code .

Moving from zsh to bash or bash to zsh: Terminal change

The most recent Mac version terminal’s absolute path is zsh. However, If you want to use bash, you can change zsh to bash or bash to zsh.

To use .bash_profile on Terminal

Mac: Terminal – Preferences – General – Shells open with Command to use bash (complete path): /bin/bash

To use .zprofile & .zshrc on Terminal

Mac: Terminal – Preferences – General – Shells open with Command to use zsh (complete path): `/bin/zsh`

Tip: you can use .bash_profile with zsh

vi ~/.zprofile
if [ -f ~/.bash_profile ]; then
 . ~/.bash_profile
fi
ANOTE.DEV