Add ppwd and add pretty sh prompt colours

This commit is contained in:
Joe Groocock 2018-02-05 21:10:26 +00:00
parent 887b731053
commit b24a4d9302
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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'