Skip to content

Commit

Permalink
Merge pull request #2 from mkpro118/improve-prompts
Browse files Browse the repository at this point in the history
Improve prompts
  • Loading branch information
mkpro118 authored Jun 20, 2024
2 parents 0627d23 + 2678994 commit 55bfdcb
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ RUN apt-get update && apt-get install --no-install-recommends -y valgrind\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install Bash Completion
RUN apt-get update && apt-get install --no-install-recommends -y bash-completion\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc

ENV HOME /home/root
WORKDIR $HOME

# Install Git Prompt
RUN wget -O ~/.git-prompt.sh --no-check-certificate \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh \
&& rm -fr ~/.wget-hsts
RUN echo "source ~/.git-prompt.sh" >> ~/.bashrc

# Setup User Prompts
RUN echo "export PS1='\\[\\e[1m\\]\\[\\e[32m\\]\\u\\[\\e[0m\\]\\[\\e[35m\\] @\\[\\e[0m\\] \\[\\e[3m\\]\\[\\e[34m\\]\\W\\[\\e[0m\\] \$(__git_ps1 \"\\[\\e[35m\\]on \\[\\e[33m\\]\\[\\e[3m\\]%s \")\\[\\e[0m\\]\\[\\e[35m\\]\$\\[\\e[0m\\]\\[\\e[33m\\]:\\[\\e[0m\\] \\[\\e[36m\\]'" >> ~/.bashrc

# Shortcut for python3
RUN echo -e '\nalias py=python3\n' >> ~/.bashrc
RUN echo 'alias py=python3' >> ~/.bashrc

0 comments on commit 55bfdcb

Please sign in to comment.