From ecbd242551af4d7bb93c3bf3cff1029b3c945260 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Wed, 24 Jul 2024 13:37:30 -0500 Subject: [PATCH] different PS1 for different hostnames --- .config/bash/bashrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.config/bash/bashrc b/.config/bash/bashrc index 4fa8d0f..fc6ed91 100644 --- a/.config/bash/bashrc +++ b/.config/bash/bashrc @@ -21,6 +21,25 @@ shopt -s histverify PS1="\h:\w\$ " +# hostname shenanigans +case "$HOSTNAME" in + "copernicus") + PS1="\[\033[92;1m\]$PS1\[\033[0;0m\]" + ;; + "x230t") + PS1="\[\033[93;1m\]$PS1\[\033[0;0m\]" + ;; + "mlg") + PS1="\[\033[94;1m\]$PS1\[\033[0;0m\]" + ;; + "netbox") + PS1="\[\033[95;1m\]$PS1\[\033[0;0m\]" + ;; + *) + PS1="\[\033[96;1m\]$PS1\[\033[0;0m\]" + ;; +esac + repos() { sel="$(ls ~/git | fzy | awk '{print "/home/usr/git/"$1}')" [ "$?" -eq 1 ] && exit