.profile: Add a prefix for my portable Linux install

This commit is contained in:
Salt 2018-12-15 20:41:57 -06:00
parent 1d972c3e97
commit 9b34cd39ce
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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