diff --git a/Applications/Essential/Zsh.md b/Applications/Essential/Zsh.md index ef785d3..f0b5746 100644 --- a/Applications/Essential/Zsh.md +++ b/Applications/Essential/Zsh.md @@ -1,10 +1,6 @@ # [Zsh](https://wiki.archlinux.org/index.php/Zsh) -Set default shell: - -```sh -chsh -s /usr/local/bin/zsh -``` +## macOS To use latest zsh in macOS, install `zsh` with Homebrew. Then append to `/etc/shells`: @@ -12,3 +8,9 @@ Then append to `/etc/shells`: ```txt /usr/local/bin/zsh ``` + +Set default shell: + +```sh +chsh -s /usr/local/bin/zsh +``` diff --git a/Development/Bash/README.md b/Development/Bash/README.md index 236c64e..9d9fe98 100644 --- a/Development/Bash/README.md +++ b/Development/Bash/README.md @@ -1,4 +1,4 @@ -# Bash +# [Bash](https://wiki.archlinux.org/index.php/bash) Add to `~/.bashrc`: @@ -30,8 +30,7 @@ Shebang: In macOS, Bash read `~/.bash_profile` not `~/.bashrc`, so edit `~/.bash_profile`: ```bash -[[ -f ~/.bashrc ]] && \ - source ~/.bashrc +[[ -f ~/.bashrc ]] && source ~/.bashrc ``` To use latest Bash, install `bash` with Homebrew. @@ -43,6 +42,6 @@ Then append to `/etc/shells`: Set default shell -``` +```sh chsh -s /usr/local/bin/bash ```