Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

Repo

requried fonts for some themes

Powerline

Nerd Fonts

install zsh first

Ref

customize a theme in on-my-zsh

Add full current directory and time to the prompt Link

cp $ZSH/themes/$ZSH_THEME.zsh-theme $ZSH_CUSTOM/themes/
sed -i.bak 's/^PROMPT=.*/PROMPT="%{$fg_bold[magenta]%}[%*] %(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} ) %{$fg[cyan]%}%~%{$reset_color%}"/' $ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme

# replace current shell with new zsh shell
exec zsh

prompt example (custom robbyrussell theme)

PROMPT="%{$fg_bold[magenta]%}[%*] %(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} ) %{$fg[cyan]%}%~%{$reset_color%}"
PROMPT+=' $(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]%}%1{✗%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"