zsh: create custom prompt

This commit is contained in:
thomasabishop 2024-03-26 09:56:45 +00:00
parent 8a684692cc
commit 1251f5921b
2 changed files with 7 additions and 1 deletions

6
zsh/thomas.zsh-theme Normal file
View file

@ -0,0 +1,6 @@
# -*- sh -*- vim:set ft=sh ai et sw=4 sts=4:
# It might be bash like, but I can't have my co-workers knowing I use zsh
PROMPT='%{$fg_bold[green]%}%n@%m:%{$fg_bold[blue]%}%2~ $(git_prompt_info)%{$reset_color%}%(.) '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"

View file

@ -15,7 +15,7 @@ alias gpt="chatgpt-cli"
# Set properties based on OS
ZSH_THEME="risto"
ZSH_THEME="thomas"
plugins=(git npm fzf-tab zsh-autosuggestions zsh-syntax-highlighting)
# Search against /home/thomas/repos/computer_science