From 6e59344dc6c8ad16a34f2b67913c9706d97aa5de Mon Sep 17 00:00:00 2001 From: shoofle Date: Sat, 3 Jun 2023 17:08:19 -0400 Subject: [PATCH] this is all a travesty but is that not simply the nature of dotfiles --- profile => prompt_bash | 0 prompt_zsh | 12 ++++++++++++ zsh_prompt | 9 --------- 3 files changed, 12 insertions(+), 9 deletions(-) rename profile => prompt_bash (100%) create mode 100644 prompt_zsh delete mode 100644 zsh_prompt diff --git a/profile b/prompt_bash similarity index 100% rename from profile rename to prompt_bash diff --git a/prompt_zsh b/prompt_zsh new file mode 100644 index 0000000..6e19489 --- /dev/null +++ b/prompt_zsh @@ -0,0 +1,12 @@ +username="%F{40}%n%f" +host="%U%F{40}%m%f%u" +directory="%F{39}%~%f" +error_marker="(%0(?.%F{46}✓%f.%F{124}✗%f))" + +export PROMPT="${username}@${host}:${directory} ${error_marker} " + + +#https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html +#https://dev.to/voracious/a-guide-to-customizing-the-zsh-shell-prompt-2an6 +#✓ +#✗ diff --git a/zsh_prompt b/zsh_prompt deleted file mode 100644 index 028a71d..0000000 --- a/zsh_prompt +++ /dev/null @@ -1,9 +0,0 @@ -username="%F{40}%n%f" -host="%F{40}%m%f" -directory="%F{39}%~%f" -error_marker="%0(?.%F{46}✓%f.%F{124}✗%f)" - -export PROMPT="${username}@${host}:${directory} ${error_marker} " - -#✓ -#✗