Comment

Comment by enw

The following goes a long way:

    setopt PROMPT_SUBST
    HISTFILE=~/.zsh_history
    HISTSIZE=100000
    SAVEHIST=100000
    PROMPT='%B%(?..%F{red}%?%f )%F{blue}%~ %F{green}%#%f%b '
    RPROMPT='%B%F{red}$(git branch --show-current 2> /dev/null)%f%b'
And if you want autosuggestions:

    brew install zsh-autosuggestions
Then add the following to your ~/.zshrc:

    source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
parent enw 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton