.profile: Add a prefix for my portable Linux install
This commit is contained in:
parent
1d972c3e97
commit
9b34cd39ce
@ -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
|
||||
|
7
.profile
7
.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
|
||||
|
Loading…
Reference in New Issue
Block a user