From 1251f5921b48a3c8c0c5d5de0cdb8f6f2589a04c Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Tue, 26 Mar 2024 09:56:45 +0000 Subject: [PATCH] zsh: create custom prompt --- zsh/thomas.zsh-theme | 6 ++++++ zsh/zshrc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 zsh/thomas.zsh-theme diff --git a/zsh/thomas.zsh-theme b/zsh/thomas.zsh-theme new file mode 100644 index 0000000..1ba315e --- /dev/null +++ b/zsh/thomas.zsh-theme @@ -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%}" diff --git a/zsh/zshrc b/zsh/zshrc index 75dccd6..3ff21ea 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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