From b24a4d93022f465ac1796f59a7340aab0948cef9 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 5 Feb 2018 21:10:26 +0000 Subject: [PATCH] Add ppwd and add pretty sh prompt colours --- Dockerfile | 3 +++ skel/profile | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7b066c1..59ba1b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -97,6 +97,9 @@ COPY --from=builder /output/ / ADD skel/* /etc/ RUN chmod 1777 /tmp +ADD https://gist.githubusercontent.com/frebib/2b4ba154a9d62b31b1edcb50477e7f01/raw/647c3f8ee4dc7e325cd41f40fe47735f75a7f607/ppwd.sh /usr/bin/ppwd +RUN chmod 755 /usr/bin/ppwd + ENV ENV="/etc/profile" ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin diff --git a/skel/profile b/skel/profile index ce9f709..d1c9d65 100644 --- a/skel/profile +++ b/skel/profile @@ -1,6 +1,6 @@ export PAGER='/bin/less -R' export EDITOR='/bin/vi' -export PS1='\u@\h \w> ' +export PS1='\e[1;36m\u@\h\e[0m \e[0;32m$(ppwd)\e[0m> ' # Source configuration files from /etc/profile.d for i in /etc/profile.d/*.sh ; do @@ -18,3 +18,5 @@ alias la='ls -la' alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' +alias md='mkdir' +alias dd='rmdir'