summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-03-21 18:18:50 +0100
committerChristian Poessinger <christian@poessinger.com>2019-03-21 18:18:50 +0100
commit5de61435fb48e2396bd5084e8e1aad28070c0e98 (patch)
tree233e8ebc41b895c299e42601bbb1307d353aa58d
parenta6109c98a25f3eeeff31c6690d6bd50953484bf9 (diff)
downloadvyatta-bash-5de61435fb48e2396bd5084e8e1aad28070c0e98.tar.gz
vyatta-bash-5de61435fb48e2396bd5084e8e1aad28070c0e98.zip
T1310: use FQDN as hostname in config prompt
-rw-r--r--debian/etc.bash.bashrc2
-rw-r--r--debian/etc.profile2
-rw-r--r--debian/skel.bashrc6
3 files changed, 5 insertions, 5 deletions
diff --git a/debian/etc.bash.bashrc b/debian/etc.bash.bashrc
index 6cd166f..ae73152 100644
--- a/debian/etc.bash.bashrc
+++ b/debian/etc.bash.bashrc
@@ -16,7 +16,7 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
fi
# set a fancy prompt (non-color, overwrite the one in /etc/profile)
-PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ '
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
diff --git a/debian/etc.profile b/debian/etc.profile
index b67da47..9293c1b 100644
--- a/debian/etc.profile
+++ b/debian/etc.profile
@@ -9,7 +9,7 @@ fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+ PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
diff --git a/debian/skel.bashrc b/debian/skel.bashrc
index 939f390..3ac9e8f 100644
--- a/debian/skel.bashrc
+++ b/debian/skel.bashrc
@@ -23,15 +23,15 @@ fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
*)
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+ PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ '
;;
esac
# Comment in the above and uncomment this below for a color prompt
-#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# If this is an xterm set the title to user@host:dir
case "$TERM" in