diff --git a/git/setup.sh b/git/setup.sh new file mode 100644 index 0000000..d0b63b5 --- /dev/null +++ b/git/setup.sh @@ -0,0 +1,8 @@ +# install git +sudo apt install git --assume-yes + +# install keyring +sudo apt install libsecret-1-0 libsecret-1-dev --assume-yes +cd /usr/share/doc/git/contrib/credential/libsecret +sudo make +git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret diff --git a/terminal/kitty.conf b/terminal/kitty.conf new file mode 100755 index 0000000..027ad16 --- /dev/null +++ b/terminal/kitty.conf @@ -0,0 +1,29 @@ +font_family JetBrains Mono Extra +bold_font auto +italic_font auto +bold_italic_font auto +font_size 14 + +background #002b36 +foreground #839496 +cursor #93a1a1 + +selection_background #81908f +selection_foreground #002831 + +color0 #073642 +color1 #dc322f +color2 #859900 +color3 #b58900 +color4 #268bd2 +color5 #d33682 +color6 #2aa198 +color7 #eee8d5 +color9 #cb4b16 +color8 #002b36 +color10 #586e75 +color11 #657b83 +color12 #839496 +color13 #6c71c4 +color14 #93a1a1 +color15 #fdf6e3 diff --git a/terminal/setup-terminal.sh b/terminal/setup-terminal.sh new file mode 100644 index 0000000..a3b8ab4 --- /dev/null +++ b/terminal/setup-terminal.sh @@ -0,0 +1,16 @@ +# install python3 and pip3 +sudo apt install python3 python3-pip --assume-yes + +# install pip3 powerline +sudo pip3 install git+git://github.com/powerline/powerline +wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf +sudo mv PowerlineSymbols.otf /usr/share/fonts/ +sudo fc-cache -vf +sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/ + +# install kitty +sudo apt install kitty --assume-yes + +# copy kitty config +cp kitty.conf ~/.config/kitty/kitty.conf + diff --git a/vim/vim-setup.sh b/vim/vim-setup.sh new file mode 100644 index 0000000..ab17743 --- /dev/null +++ b/vim/vim-setup.sh @@ -0,0 +1,13 @@ +# install curl +sudo apt install curl --assume-yes + +# install vim +sudo apt install vim --assume-yes + +# setup vim-plug +curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + +# copy vimrc +cp vimrc ~/.vimrc + diff --git a/vim/vimrc b/vim/vimrc new file mode 100755 index 0000000..3a9b839 --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,46 @@ +if has("syntax") + syntax on +endif + +nnoremap qt :vert term + +nnoremap s5 :so % + +noremap qq :q +noremap qqq :q! +noremap vs :e $MYVIMRC +inoremap qw :wi +nnoremap qw :w +inoremap ii + +set number + +call plug#begin() + Plug 'itchyny/lightline.vim' + Plug 'altercation/vim-colors-solarized' + Plug 'calincru/flex-bison-syntax' + Plug 'scrooloose/syntastic' + Plug 'othree/html5.vim' + Plug 'ryanoasis/vim-devicons' + Plug 'scrooloose/nerdtree' + Plug 'valloric/youcompleteme' + Plug 'jiangmiao/auto-pairs' + Plug 'jrozner/vim-antlr' + Plug 'dart-lang/dart-vim-plugin' + Plug 'leafgarland/typescript-vim' +call plug#end() + +noremap qf :NERDTreeToggle + +set encoding=UTF-8 +set tabstop=4 + +set background=dark +set laststatus=2 +set noshowmode +let g:lightline = { + \ 'colorscheme': 'solarized', + \ } + +colors solarized + diff --git a/ycm-compile/ycm-compile.sh b/ycm-compile/ycm-compile.sh new file mode 100644 index 0000000..73cc086 --- /dev/null +++ b/ycm-compile/ycm-compile.sh @@ -0,0 +1,5 @@ +# install dependencies +sudo apt install build-essential cmake vim-nox python3-dev mono-complete golang nodejs default-jdk npm --assume-yes + +# compile ycm +python3 ~/.vim/plugged/youcompleteme/install.py --all