commit b3232e15b3d4582581111891cc877c480f0ba418 parent eb929ad41a915fdab68ff6bac2029b38b675cb48 Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> Date: Sat, 17 Oct 2026 11:15:51 +0200 Drop provision for customizing prompt hostname Been using that code for a decade, never once set that variable. Whatevs. Diffstat:
| M | .bash_prompt | | | 17 | +---------------- |
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/.bash_prompt b/.bash_prompt @@ -1,23 +1,8 @@ # Emacs? -*- shell-script -*- please. -# Environment variables: -# -# PS1_SHOWHOSTNAME -# 'auto' (default): Only show hostname over SSH -# 'yes': Always show hostname -# anything else: Never show hostname - - __show-hostname () { - case ${PS1_SHOWHOSTNAME} in - (''|auto) - test "${SSH_CONNECTION}";; - (yes) - true;; - (*) - false;; - esac + test "${SSH_CONNECTION}" } __set-title ()