From 4e881f09cb5fea38ef128ca2974e575ad355dcfc Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Tue, 26 Dec 2017 04:07:50 +0000 Subject: Make prompt more obvious --- make_ami.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make_ami.sh b/make_ami.sh index 743827c..ec89fb7 100755 --- a/make_ami.sh +++ b/make_ami.sh @@ -156,6 +156,10 @@ install_core_packages() { # anyhow. With this configuration boot messages will still display in the # EC2 console. sed -Ei '/^tty\d/s/^/#/' /etc/inittab + + # Make it a little more obvious who is logged in by adding username to the + # prompt + sed -i "s/^export PS1='/&\\\\u@/" /etc/profile } create_initfs() { -- cgit v1.2.3