From 87e3fd03cac20ab08f3a980cd3c06a3ac5782185 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 18 Aug 2022 15:10:19 +0100 Subject: [PATCH] In PS1, use $/# in bash, and %/# in zsh --- roles/home-cli/files/bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 9140bef..9d4e1d7 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -130,10 +130,10 @@ then bindkey "^[[B" history-beginning-search-forward fi -export PS1="\[\033[01m\]\u@\h>\[\033[00m\] " +export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] " if [ -n "$ZSH_VERSION" ] then - export PS1="%B%n@%m>%b " + export PS1="%B%n@%m%#%b " fi if test $(id -u) -ne 0 && test -x /usr/bin/dnf