Low Cortisol Switch From oh-my-zsh to Starhip
· Background
· Motivation
· Steps
∘ Uninstalling and Cleanup
∘ Installing and Configuring Starship
∘ Quick Tip
· The One thing that was missing that I immediately noticed
· GitHub Story Link
Background
https://github.com/ohmyzsh/ohmyzsh
Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.
https://github.com/starship/starship
The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Motivation
I’ve been using oh-my-zsh for the past 8 years when a coworker recommended it to me during an internship.
Get Josh’s stories in your inbox
Join Medium for free to get updates from this writer.
Recently I heard about starship and wanted to switch things up and see if it would be snappier.
Steps
Uninstalling and Cleanup
$ ~/.oh-my-zsh/tools/uninstall.sh
# This seems to create an automatic backup of the .zshrc
# location: ~/.zshrc.omz-uninstalled-****-**-**_**-**-**
$ rm -rf ~/.oh-my-zsh
$ code ~/.zshrc
# Now we need to cleanup all the oh-my-zsh config that was in the .zshrcInstalling and Configuring Starship
I used brew for this
$ brew install starshipI’ve started with a simple preset
$ starship preset plain-text-symbols -o ~/.config/starsip.tomlNow I’ll edit it slightly…
$ code ~/.config/starship.toml
# ...Here are some sections that I have changed:
format = "$directory$git_branch$character"
add_newline = false
[character]
success_symbol = "[>](bold green)"
error_symbol = "[>](bold red)"Looks like this now:
Quick Tip
use starship timings to check your speed.
knowledge-transfer on git main > starship timings
Here are the timings of modules in your prompt (>=1ms or output):
directory - 22ms - "knowledge-transfer "
character - <1ms - "> "
git_branch - <1ms - "on git main "The One thing that was missing that I immediately noticed
The bind keys for moving the front and back of the prompt with the macOS function keys!
Add them by adding these lines to your ~/.zshrc config:
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line







