Skip to content

Instantly share code, notes, and snippets.

@afragen
Last active February 8, 2021 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afragen/b5c7360618558ed305fef00b01db9116 to your computer and use it in GitHub Desktop.
Save afragen/b5c7360618558ed305fef00b01db9116 to your computer and use it in GitHub Desktop.
Modification of PROMPT in robbyrussell.zsh-theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
local processor="$(uname -m)"
PROMPT='${ret_status} $fg[grey]%m $fg[cyan]${processor}: %{$fg[cyan]%}${PWD/#$HOME/~}%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@afragen
Copy link
Author

afragen commented Feb 8, 2021

Updated to list processor so you can tell if shell is running under Rosetta.

screenshot_02

screenshot_03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment