Skip to content

Commit

Permalink
chore: Moar tools!!!111einz
Browse files Browse the repository at this point in the history
  • Loading branch information
jzandbergen committed Mar 24, 2023
1 parent 179a011 commit 8082141
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 22 deletions.
41 changes: 28 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,36 @@ FROM debian:bullseye-slim
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install \
iputils-ping \
net-tools \
vim \
git \
nmap \
ncat \
dnsutils \
tcpdump \
telnet \
curl \
wget \
iperf \
iproute2
bash-completion \
iputils-ping \
net-tools \
vim \
git \
nmap \
ncat \
dnsutils \
tcpdump \
telnet \
curl \
wget \
iperf \
iproute2 \
socat \
postgresql-client \
pgformatter && \
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim && \
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && \
~/.fzf/install

ENV PATH=${PATH}:/usr/local/go/bin

COPY files/root/.bashrc /root/.bashrc
COPY files/root/.vimrc /root/.vimrc

RUN vim +PluginInstall +qall && \
apt-get clean && \
echo "colorscheme gotham" >> /root/.vimrc && \
echo "set bg=dark" >> /root/.vimrc

WORKDIR /root

6 changes: 0 additions & 6 deletions Makefile

This file was deleted.

4 changes: 1 addition & 3 deletions files/root/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022


Expand All @@ -17,5 +17,3 @@ alias l='ls $LS_OPTIONS -lA'
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

# 2
104 changes: 104 additions & 0 deletions files/root/.vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
"let mapleader = ";"
set nocompatible " be iMproved, required
filetype off " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
" TODO
Plugin 'whatyouhide/vim-gotham'
" TODO
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-repeat'
Plugin 'Yggdroot/indentLine'
Plugin 'terrastruct/d2-vim'
Plugin 'earthly/earthly.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'Raimondi/delimitMate'

" nerdtree
Plugin 'preservim/nerdtree'
" shiny dev icons, must be placed last.
Plugin 'ryanoasis/vim-devicons'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

set nosmartindent
set cul
set nocindent
set encoding=UTF-8
set modeline
set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<
"set nofoldenable
set nu
set splitright
set colorcolumn=80
set directory=/tmp
set formatoptions+=w
"set tw=80
"set omnifunc=syntaxcomplete#Complete
set completeopt=longest
" see help cpt
set complete=.,t,i
set foldmethod=syntax
set foldnestmax=10
set foldlevel=9
let g:indentLine_enabled = 1

syntax on
" link to fzf binary
set rtp+=/usr/bin/fzf

nnoremap <leader>f :Files<Cr>
nnoremap <leader>g :GFiles<cr>
nnoremap <leader>o :Buffers<Cr>
nnoremap <leader>l :BLines<Cr>
nnoremap <leader>L :Lines<Cr>
augroup sql
autocmd!
"Required: sudo apt install pgformat
autocmd FileType sql nmap <F3> :%!pg_format -B -<CR>
set ts=4 sw=4 sts=4 expandtab
augroup END

" Differen Indentlines depending on depth.
let g:indentLine_char_list = ['|', '¦', '', '']

" NerdTree
silent! nmap <F2> :NERDTreeToggle<CR>

""" " YCM default binds <tab> we remove that here and listen to
""" " <C-n>. Below we give <tab> to supertab and then bind that
""" " again to <C-n>
""" let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
""" let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
""" let g:SuperTabDefaultCompletionType = '<C-n>'
"""
""" " better key bindings for UltiSnipsExpandTrigger
""" let g:UltiSnipsExpandTrigger = "<tab>"
""" let g:UltiSnipsJumpForwardTrigger = "<tab>"
""" let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"

0 comments on commit 8082141

Please sign in to comment.