From c6d3c8478de260df27929bf7ddb6bbd9b3691e14 Mon Sep 17 00:00:00 2001 From: Ben Swartzlander Date: Tue, 10 Oct 2017 14:52:52 -0400 Subject: [PATCH] Modify PS1 to include working directory To improve debugability, include the cwd in the PS1 prompt for interactive shells. Change-Id: I462cd63e68fd455e8e71c6849bd35501c46d7b92 --- patches/series | 1 + patches/skeleton-profile-ps1.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 patches/skeleton-profile-ps1.patch diff --git a/patches/series b/patches/series index dda50d2..6b1ec2b 100644 --- a/patches/series +++ b/patches/series @@ -2,3 +2,4 @@ nfs-utils-enable-nfsv4.patch samba4-fixes.patch bootloader-alignment-fix.patch dropbear-default-path.patch +skeleton-profile-ps1.patch diff --git a/patches/skeleton-profile-ps1.patch b/patches/skeleton-profile-ps1.patch new file mode 100644 index 0000000..0081536 --- /dev/null +++ b/patches/skeleton-profile-ps1.patch @@ -0,0 +1,16 @@ +Index: buildroot/system/skeleton/etc/profile +=================================================================== +--- buildroot.orig/system/skeleton/etc/profile 2017-10-07 19:55:20.773561441 -0400 ++++ buildroot/system/skeleton/etc/profile 2017-10-07 19:55:33.381690124 -0400 +@@ -2,9 +2,9 @@ + + if [ "$PS1" ]; then + if [ "`id -u`" -eq 0 ]; then +- export PS1='# ' ++ export PS1='\w # ' + else +- export PS1='$ ' ++ export PS1='\w $ ' + fi + fi +