Skip to content

Commit 9fa3809

Browse files
committed
Merge pull request #3 from any35/feature/tmux
Feature/tmux
2 parents 6cd626a + 036f2eb commit 9fa3809

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ADD fs/ /
1111
RUN apt-get update && \
1212
apt-get install -y ncurses-dev libtolua-dev exuberant-ctags sudo && \
1313
apt-get install -y build-essential openssl libssl-dev curl && \
14+
apt-get install -y tmux && \
1415
ln -s /usr/include/lua5.2/ /usr/include/lua && \
1516
ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/lib/liblua.so && \
1617
curl -sL https://deb.nodesource.com/setup | sudo bash - && \
@@ -38,6 +39,7 @@ RUN apt-get update && \
3839
mkdir -p /usr/src/go/bin/ && \
3940
mv /go/bin/* /usr/src/go/bin/ && \
4041
echo 'export PATH=/usr/src/go/bin/:$PATH' >> /etc/profile && \
42+
echo 'export TERM="xterm-256color"' >> /etc/profile && \
4143
# add dev user
4244
adduser dev --disabled-password --gecos "" && \
4345
echo "ALL ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers && \
@@ -96,6 +98,9 @@ RUN mkdir -p ~/.vim/bundle && \
9698
git clone --depth 1 https://github.com/vim-scripts/mru.vim.git && \
9799
git clone --depth 1 https://github.com/vim-scripts/taglist.vim.git && \
98100
vim +PluginInstall +qall && \
101+
ln /home/dev/.vimrc /root/.vimrc && \
102+
ln /home/dev/.tmux.conf /root/.tmux.conf && \
103+
ln -s /home/dev/.vim /root/.vim && \
99104
# cleanup
100105
rm -rf Vundle.vim/.git vim-go/.git tagbar/.git neocomplete.vim/.git \
101106
nerdtree/.git vim-airline/.git vim-fugitive/.git \

fs/home/dev/.tmux.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#unbind C-b
2+
#set -g prefix C-a
3+
4+
set -g status-bg black
5+
set -g status-fg white
6+
7+
set-option -g status-justify centre
8+
9+
set-option -g status-left '#[bg=black,fg=green][#[fg=cyan]#S#[fg=green]]'
10+
set-option -g status-left-length 20
11+
12+
setw -g automatic-rename on
13+
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]'
14+
set-window-option -g window-status-current-format '#[fg=cyan,bold]#I#[fg=blue]:#[fg=cyan]#W#[fg=dim]'
15+
16+
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d#[fg=green]]'
17+
18+
19+
# bind a reload key
20+
bind R source-file ~/.tmux.conf ; display-message "Config reloaded.."
21+
22+
set -g default-terminal "screen-256color"
23+
24+
set-window-option -g xterm-keys on
25+

fs/home/dev/.vimrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
set nocompatible " be iMproved, required
22
filetype off " required
33

4+
if exists('$TMUX')
5+
set term=screen-256color
6+
endif
47
" set the runtime path to include Vundle and initialize
58
set rtp+=~/.vim/bundle/Vundle.vim
69
call vundle#begin()

0 commit comments

Comments
 (0)