Add ppwd and add pretty sh prompt colours
This commit is contained in:
parent
887b731053
commit
b24a4d9302
@ -97,6 +97,9 @@ COPY --from=builder /output/ /
|
|||||||
ADD skel/* /etc/
|
ADD skel/* /etc/
|
||||||
RUN chmod 1777 /tmp
|
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 ENV="/etc/profile"
|
||||||
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
|
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export PAGER='/bin/less -R'
|
export PAGER='/bin/less -R'
|
||||||
export EDITOR='/bin/vi'
|
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
|
# Source configuration files from /etc/profile.d
|
||||||
for i in /etc/profile.d/*.sh ; do
|
for i in /etc/profile.d/*.sh ; do
|
||||||
@ -18,3 +18,5 @@ alias la='ls -la'
|
|||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
|
alias md='mkdir'
|
||||||
|
alias dd='rmdir'
|
||||||
|
Loading…
Reference in New Issue
Block a user