iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46adb98
)
show hostname in prompt whenever sudo
author
Ian Kelling
<iank@fsf.org>
Wed, 15 May 2019 20:42:44 +0000
(16:42 -0400)
committer
Ian Kelling
<iank@fsf.org>
Wed, 15 May 2019 20:42:44 +0000
(16:42 -0400)
brc
patch
|
blob
|
history
diff --git
a/brc
b/brc
index 78d28e3b59370a4cdf6b6877e9cee7cae27796c1..e03b0b5dc2afbf86be8a89183197c701d33a6aeb 100644
(file)
--- a/
brc
+++ b/
brc
@@
-2089,13
+2089,10
@@
if [[ $- == *i* ]]; then
bind -m vi-command W:shell-forward-word
fi
- if [[ $SSH_CLIENT ]]; then
+ if [[ $SSH_CLIENT
|| $SUDO_USER
]]; then
PS1="\h $PS1"
fi
-
-
-
prompt-command() {
local return=$? # this MUST COME FIRST
local psc pst ps_char ps_color stale_subvol