From 3e6d660ba1f1d9d1b0962f9b92a362cfb313c204 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 15 Sep 2022 22:29:18 +0100 Subject: [PATCH] Set a POSIX-compatible prompt if not bash or zsh --- roles/home-cli/files/bash_profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/home-cli/files/bash_profile b/roles/home-cli/files/bash_profile index 1694a72..dd02ffe 100644 --- a/roles/home-cli/files/bash_profile +++ b/roles/home-cli/files/bash_profile @@ -91,6 +91,9 @@ then bindkey "^[OB" history-beginning-search-forward PS1="%B%n@%m%#%b " +else + # POSIX-compatible prompt. + PS1="$(id -un)@$(uname -n | sed 's/\..*$//')$ " fi _acp_add_path () {