Skip to content

Commit

Permalink
tmux now starts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
justin2004 committed Nov 24, 2018
1 parent 809ccb4 commit 8ed8157
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .vimrc
@@ -0,0 +1,11 @@
syntax enable
set background=dark
set ai
" TODO tabstop, etc.
set hlsearch
set ignorecase

"let g:slimv_swank_cmd = '! tmux new-window -d -n REPL-SBCL "sbcl --load ~/.vim/slime/start-swank.lisp"'
let g:slimv_swank_cmd = '! if [ -z "$TMUX" ] ; then echo you need to start tmux first then open vim within tmux ; exit 1 ; else tmux new-window -d -n REPL-SBCL "sbcl --load ~/.vim/slime/start-swank.lisp" ; fi'
"let g:slimv_swank_cmd = '!sbcl --load ~/.vim/slime/start-swank.lisp &'
"let g:slimv_swank_cmd = '! xterm -e sbcl --load ~/.vim/slime/start-swank.lisp &'
22 changes: 14 additions & 8 deletions Dockerfile
Expand Up @@ -7,8 +7,7 @@ WORKDIR /root

RUN set -x \
&& apt-get update \
&& apt-get install -y git

&& apt-get install -y git
RUN git clone 'https://github.com/vim/vim.git'
RUN apt-get install -y make
RUN apt-get install -y build-essential
Expand All @@ -21,15 +20,22 @@ RUN apt-get install -y libncurses5-dev
RUN sed --in-place -e 's/#CONF_OPT_PYTHON\>/CONF_OPT_PYTHON/' vim/src/Makefile
RUN cd vim/src && make

#ADD entry.lisp /root
RUN git clone 'https://github.com/kovisoft/slimv.git'
RUN mkdir .vim && cp -r slimv/* .vim/
RUN ln -s /root/vim/runtime /usr/local/share/vim
RUN apt-get install -y tmux
RUN apt-get install -y procps
RUN apt-get install -y sbcl

# so we can run tmux
RUN apt-get install -y locales
RUN sed --in-place -e '/en_US.UTF-8 UTF-8/ s/^#//' /etc/locale.gen
RUN locale-gen

# TODO pgp verification
#RUN wget 'https://beta.quicklisp.org/quicklisp.lisp'
#RUN touch .sbclrc
#RUN sbcl --load quicklisp.lisp --load install_it.lisp --eval '(quit)'
ADD .vimrc /root



#STOPSIGNAL SIGTERM

CMD ["./entry.lisp", "--help"]
CMD ["bash", "-c", "tmux"]

0 comments on commit 8ed8157

Please sign in to comment.