.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]
|
[KFileDialog Settings]
|
||||||
Automatically select filename extension=true
|
Automatically select filename extension=true
|
||||||
Breadcrumb Navigation=false
|
Breadcrumb Navigation=false
|
||||||
Decoration position=0
|
Decoration position=2
|
||||||
LocationCombo Completionmode=5
|
LocationCombo Completionmode=5
|
||||||
PathCombo Completionmode=5
|
PathCombo Completionmode=5
|
||||||
Show Bookmarks=false
|
Show Bookmarks=false
|
||||||
@ -197,7 +197,7 @@ Sort directories first=true
|
|||||||
Sort reversed=false
|
Sort reversed=false
|
||||||
Speedbar Width=154
|
Speedbar Width=154
|
||||||
View Style=Simple
|
View Style=Simple
|
||||||
listViewIconSize=28
|
listViewIconSize=43
|
||||||
|
|
||||||
[KShortcutsDialog Settings]
|
[KShortcutsDialog Settings]
|
||||||
Dialog Size=600,480
|
Dialog Size=600,480
|
||||||
|
7
.profile
7
.profile
@ -173,8 +173,13 @@ _ps1() {
|
|||||||
fg_bold="\e[1m"
|
fg_bold="\e[1m"
|
||||||
|
|
||||||
# Add hostname prefix in SSH sessions
|
# 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
|
if [ "$SSH_CLIENT" ]; then
|
||||||
prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:"
|
prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${prefix}"
|
||||||
fi
|
fi
|
||||||
# Append a "restricted" prefix in rbash
|
# Append a "restricted" prefix in rbash
|
||||||
if [ "$0" = "rbash" ]; then
|
if [ "$0" = "rbash" ]; then
|
||||||
|
Reference in New Issue
Block a user