Skip to content

Instantly share code, notes, and snippets.

@nvictor
Created November 3, 2024 13:51
Show Gist options
  • Save nvictor/f5370eb2da227f124ccebf5bfc94cc6c to your computer and use it in GitHub Desktop.
Save nvictor/f5370eb2da227f124ccebf5bfc94cc6c to your computer and use it in GitHub Desktop.
macos_terminal_2024.txt
- zsh (default)
- homebrew (https://brew.sh/)
- oh-my-zsh (https://github.com/ohmyzsh/ohmyzsh/)
- oh-my-zsh themes: dieter (https://github.com/ohmyzsh/ohmyzsh/wiki/Themes)
# NOTE: the empty -i '' on macos for compatibility with GNU sed
```
sed -i '' 's/\(ZSH_THEME="robbyrussell"\)/#\1\
ZSH_THEME="dieter"/' ~/.zshrc
```
- oh-my-zsh plugins:
```
sed -i '' 's/\(plugins=(git)\)/#\1\
plugins=(\
git\
macos\
dotenv\
)/' ~/.zshrc
```
- oh-my-zsh plugin zsh-autosuggestions (https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#homebrew)
```
echo 'source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
```
- terminal theme The Hulk (https://github.com/nvictor/hulk)
font settings: Cascadia Mono PL size 18 (https://github.com/microsoft/cascadia-code)
- atuin (https://github.com/atuinsh/atuin)
- vitals (https://github.com/hmarr/vitals)
- gh / copilot (https://cli.github.com/)
```
gh auth login
```
-- zsh prompt for dieter (~/.oh-my-zsh/themes/dieter.zsh-theme)
# TODO: automate/script this!
```
nl() { printf "\n$ "; }
PROMPT='${time} ${user}${host} ${pwd} $(git_prompt_info)$(nl)'
```
-- atuin settings
```
sed -i '' 's/enter_accept = true/enter_accept = false/' ~/.config/atuin/config.toml
sed -i '' 's/# show_preview = true/show_preview = true/' ~/.config/atuin/config.toml
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
```
-- gh copilot extension
gh extension install github/gh-copilot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment