Changes before live image rebuild.

This commit is contained in:
cyteen 2020-04-30 17:09:26 +01:00
parent 08158ea61f
commit 359ac765fc
5 changed files with 54 additions and 16 deletions

View File

@ -4,6 +4,8 @@ apt-get -y install apt-file
apt-get -y install tree
apt-get -y install tmux
apt-get -y install xclip
apt-get -y install fzf
apt-get -y install ripgrep
apt-get -y install xsel
apt-get -y install neofetch
apt-get -y install sshpass

View File

@ -2,15 +2,18 @@
# curl -sL https://deb.nodesource.com/setup_10.x | bash -
wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
VERSION=node_10.x
VERSION=node_14.x
#DISTRO="$(lsb_release -s -c)"
DISTRO="testing"
DISTRO="buster"
AVAILABLE=/etc/apt/sources.list-available
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/${AVAILABLE}/nodesource.list
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/${AVAILABLE}/nodesource.list
ln -s /etc/apt/${AVAILABLE}/nodesource.list /etc/apt/sources.list.d/nodesource.list
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee ${AVAILABLE}/nodesource.list
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a ${AVAILABLE}/nodesource.list
ln -sf ${AVAILABLE}/nodesource.list /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
apt-get install -y nodejs
#sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10

View File

@ -154,7 +154,6 @@ Plugin 'wincent/command-t'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
"Plugin 'Valloric/YouCompleteMe'
Plugin 'davidhalter/jedi-vim'
Plugin 'nvie/vim-flake8'
Plugin 'jnurmine/Zenburn'
Plugin 'w0ng/vim-hybrid'
@ -169,12 +168,14 @@ Plugin 'jiangmiao/auto-pairs'
Plugin 'mhinz/vim-startify'
"Plugin 'mhinz/vim-signify'
Plugin 'airblade/vim-gitgutter'
Plugin 'airblade/vim-rooter'
Plugin 'edkolev/tmuxline.vim'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'sudar/vim-arduino-syntax'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'mattboehm/vim-unstack'
Plugin 'tmux-plugins/vim-tmux'
" vim-snipmate
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
@ -251,6 +252,28 @@ Plugin 'vim-syntastic/syntastic'
Plugin 'preservim/nerdcommenter'
Plugin 'sbdchd/neoformat'
" flutter/dart
Plugin 'dart-lang/dart-vim-plugin'
Plugin 'natebosch/vim-lsc'
Plugin 'natebosch/vim-lsc-dart'
let g:lsc_auto_map = v:true
Plugin 'thosakwe/vim-flutter'
call FlutterMenu()
" Some of these key choices were arbitrary;
" it's just an example.
"nnoremap <leader>fa :FlutterRun<cr>
"nnoremap <leader>fq :FlutterQuit<cr>
"nnoremap <leader>fr :FlutterHotReload<cr>
"nnoremap <leader>fR :FlutterHotRestart<cr>
"nnoremap <leader>fD :FlutterVisualDebug<cr>
" COC intellisense engine https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim
Plugin 'neoclide/coc.nvim'
Plugin 'tjdevries/coc-zsh'
" Rust
Plugin 'rust-lang/rust.vim'
@ -363,12 +386,6 @@ nmap \ :NERDTreeToggle<CR>
" Nerdtree find keymap
nnoremap <C-\> :NERDTreeFind<CR>:vertical<CR>
" YouCompleteMe customizations
" close autocomplete window
"let g:ycm_autoclose_preview_window_after_completion=1
"map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" Python docstrings for folded code.
let g:SimplyFold_docstring_preview=1
@ -391,7 +408,11 @@ cp ${DEST}/.vimrc_pending ${DEST}/.vimrc
#mv ${DEST}/.vimrc_pending ${DEST}/.vimrc
cat ${DEST}/.vimrc
vim +PluginInstall +qall
#HOME=${DEST} vim +PluginInstall +qall
HOME=${DEST} vim -E -s -c "source ${DEST}/.vimrc" -c PluginInstall -c qa
HOME=${DEST} vim -E -s -c "source ${DEST}/.vimrc" -c CocInstall -c "coc-java coc-go coc-python coc-flutter coc-css coc-cssmodules coc-xml coc-json coc-yaml coc-html coc-git coc-docker"
# Install YouCompleteMe support
apt-get install -y build-essential cmake exuberant-ctags
@ -412,8 +433,9 @@ apt-get install -y python-dev python3-dev
# jedi-vim (since youcompleteme seems to just crash)
apt-get install -y python-pip
#pip install jedi
apt-get install -y vim-python-jedi pylama pylint flake8
apt-get install -y pylama pylint flake8
# available in unstable of old-stable only
#apt-get install -y prospector
# FIXME: Install prospector

10
020_yarn.sh Normal file
View File

@ -0,0 +1,10 @@
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list-available/yarn.list
ln -s /etc/apt/sources.list-available/yarn.list /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install --no-install-recommends yarn

View File

@ -25,6 +25,7 @@ chsh -s "$(which zsh)" "${USER}"
#DEST=$HOME
DEST=/etc/skel
HOME=${DEST}
apt-get install -y git
# Install zgen plugin manager and zsh quicktart to get a default setup for zsh
@ -88,7 +89,7 @@ cat > ${DEST}/.zgen-local-plugins << 'EOF'
#zgen load unixorn/rake-completion.zshplugin
# Automatically run zgen update and zgen selfupdate every 7 days
zgen load unixorn/autoupdate-zgen
#zgen load unixorn/autoupdate-zgen
zgen load unixorn/jpb.zshplugin