summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Swartzlander <ben@swartzlander.org>2017-10-10 14:52:52 -0400
committerBen Swartzlander <ben@swartzlander.org>2017-10-26 12:11:20 -0400
commitc6d3c8478de260df27929bf7ddb6bbd9b3691e14 (patch)
tree83082579c4e0bc9429520a7a3aaeb47789bd385d
parentcf79d49875509a4b7554fd0d46dc0c060bc72fdc (diff)
Modify PS1 to include working directory
To improve debugability, include the cwd in the PS1 prompt for interactive shells. Change-Id: I462cd63e68fd455e8e71c6849bd35501c46d7b92
Notes
Notes (review): Verified+1: Jenkins Code-Review+2: Ben Swartzlander <ben@swartzlander.org> Workflow+1: Ben Swartzlander <ben@swartzlander.org> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 26 Oct 2017 16:57:46 +0000 Reviewed-on: https://review.openstack.org/511007 Project: openstack/manila-test-image Branch: refs/heads/master
-rw-r--r--patches/series1
-rw-r--r--patches/skeleton-profile-ps1.patch16
2 files changed, 17 insertions, 0 deletions
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
2samba4-fixes.patch 2samba4-fixes.patch
3bootloader-alignment-fix.patch 3bootloader-alignment-fix.patch
4dropbear-default-path.patch 4dropbear-default-path.patch
5skeleton-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 @@
1Index: buildroot/system/skeleton/etc/profile
2===================================================================
3--- buildroot.orig/system/skeleton/etc/profile 2017-10-07 19:55:20.773561441 -0400
4+++ buildroot/system/skeleton/etc/profile 2017-10-07 19:55:33.381690124 -0400
5@@ -2,9 +2,9 @@
6
7 if [ "$PS1" ]; then
8 if [ "`id -u`" -eq 0 ]; then
9- export PS1='# '
10+ export PS1='\w # '
11 else
12- export PS1='$ '
13+ export PS1='\w $ '
14 fi
15 fi
16