Browse Source

better prompt to php container

Bachir Soussi Chiadmi 5 years ago
parent
commit
95a8d6c17e
3 changed files with 9 additions and 0 deletions
  1. 3 0
      Docker/php/Dockerfile
  2. 4 0
      Docker/php/bashrc
  3. 2 0
      Docker/php/inputrc

+ 3 - 0
Docker/php/Dockerfile

@@ -2,6 +2,9 @@ FROM php:7.0-fpm
 
 COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
 
+COPY ./bashrc /root/.bashrc
+COPY ./inputrc /root/.inputrc
+
 RUN apt-get update && apt-get install -y \
 		libfreetype6-dev \
 		libjpeg62-turbo-dev \

+ 4 - 0
Docker/php/bashrc

@@ -0,0 +1,4 @@
+
+PS1='\e[36m\e[1mPHP\e[0m:\e[90m\w\e[0m\n$ '
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'

+ 2 - 0
Docker/php/inputrc

@@ -0,0 +1,2 @@
+set show-all-if-ambiguous on
+set completion-ignore-case on