From 38b6da54a1c8af98f5dd2f13beb8fd608ee6f5b1 Mon Sep 17 00:00:00 2001 From: Vlad Frolov Date: Thu, 22 Mar 2018 13:54:50 +0200 Subject: [PATCH] Added tmux and fish --- Dockerfile | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8cdd1f..20b542b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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\]\$ '\'' ; \ @@ -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"]