From 9b34cd39ceb839b8b9d36bcd629e391f15e07db1 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 15 Dec 2018 20:41:57 -0600 Subject: [PATCH] .profile: Add a prefix for my portable Linux install --- .config/kdeglobals | 4 ++-- .profile | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.config/kdeglobals b/.config/kdeglobals index 51e8c2fa..4f1be91c 100644 --- a/.config/kdeglobals +++ b/.config/kdeglobals @@ -183,7 +183,7 @@ widgetStyle=breeze [KFileDialog Settings] Automatically select filename extension=true Breadcrumb Navigation=false -Decoration position=0 +Decoration position=2 LocationCombo Completionmode=5 PathCombo Completionmode=5 Show Bookmarks=false @@ -197,7 +197,7 @@ Sort directories first=true Sort reversed=false Speedbar Width=154 View Style=Simple -listViewIconSize=28 +listViewIconSize=43 [KShortcutsDialog Settings] Dialog Size=600,480 diff --git a/.profile b/.profile index f4197181..2c8bae54 100755 --- a/.profile +++ b/.profile @@ -173,8 +173,13 @@ _ps1() { fg_bold="\e[1m" # Add hostname prefix in SSH sessions + # Yes, shellcheck. I get it. That's what the or is for + #shellcheck disable=2039 + if [ "$HOSTNAME" = "phys-saltshaker" ] || [ "$(hostname)" = "phys-saltshaker" ]; then + prefix="${fg_bold}${fg_yellow}ss${r}" + fi if [ "$SSH_CLIENT" ]; then - prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:" + prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${prefix}" fi # Append a "restricted" prefix in rbash if [ "$0" = "rbash" ]; then