Skip to content

Commit

Permalink
Added tmux and fish
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Mar 22, 2018
1 parent 4ba76a1 commit 38b6da5
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ COPY ./etc/inputrc /etc/inputrc

# perl is required by git-submodule
# less makes git log/diff colorful
RUN apk add --no-cache bash-completion docker-bash-completion openssh-client git perl make vim less htop iftop && \
RUN apk add --no-cache \
openssh-client git perl make less \
bash bash-completion docker-bash-completion \
vim \
htop iftop \
tmux fish mdocml-apropos && \
echo '\
. /etc/profile ; \
PS1='\''\[\e[01;33m\][\h \u:\[\e[01;34m\]\w\[\e[01;33m\]]\[\e[00m\]\$ '\'' ; \
Expand All @@ -13,6 +18,25 @@ RUN apk add --no-cache bash-completion docker-bash-completion openssh-client git
alias l="ls -lah" ; \
alias ll="ls -lh" ; \
' >> /etc/bash.bashrc && \
ln -sf vim /usr/bin/vi
echo '. ~/.bashrc' > /root/.bash_profile && \
echo '. /etc/bash.bashrc' > /root/.bashrc && \
echo 'set-option -g default-shell /usr/bin/fish' > /root/.tmux.conf && \
mkdir -p /root/.config/fish/functions && \
echo '\
function fish_prompt ;\
if not set -q __fish_prompt_hostname ;\
set -g __fish_prompt_hostname (hostname) ;\
end ;\
set_color -o yellow ;\
echo -n -s "$USER" @ "$__fish_prompt_hostname" " " ;\
set_color -o blue ;\
echo -n (prompt_pwd) ;\
echo -n " # " ;\
set_color normal ;\
end ;\
\
alias l="ls -la" ;\
' > /root/.config/fish/functions/fish_prompt.fish #&& \
ln -s vim /usr/local/bin/vi

CMD ["bash", "--rcfile", "/etc/bash.bashrc"]
CMD ["bash"]

0 comments on commit 38b6da5

Please sign in to comment.