Add install_script
This commit is contained in:
parent
543d7ad93d
commit
72b18641dc
28
install_script.sh
Normal file
28
install_script.sh
Normal file
@ -0,0 +1,28 @@
|
||||
# Generic
|
||||
sudo apt install zsh neovim silversearcher-ag fzf nnn vifm thefuck
|
||||
|
||||
# SSH Key
|
||||
ssh-keygen -t ed25519 -C "flamelegrems@gmail.com"
|
||||
|
||||
# DotFiles
|
||||
git clone git@github.com:Legrems/dotfiles.git ~/Documents/dotfiles
|
||||
mkdir .config/nvim
|
||||
~/Documents/dotfiles/create_symlinks.sh
|
||||
ln -s /home/legrems/Documents/dotfiles/vim/colors /home/legrems/.config/nvim/colors
|
||||
ln -s /home/legrems/.vimrc /home/legrems/.config/nvim/init.vim
|
||||
|
||||
# Zprezto
|
||||
git clone --recursive git@github.com:Legrems/zpresto.git ~/.zprezto
|
||||
|
||||
chsh -s /bin/zsh
|
||||
|
||||
# MiniConda
|
||||
wget -O miniconda-latest-install.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
# wget -O miniconda-latest-install.sh https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pyp3-Linux-aarch64.sh
|
||||
bash miniconda-latest-install.sh
|
||||
|
||||
# MiniForge for Rpi
|
||||
wget -O
|
||||
|
||||
# AutoEnv
|
||||
git clone git://github.com/inishchith/autoenv.git ~/.autoenv
|
||||
@ -6,7 +6,7 @@ bind-key C-a send-prefix
|
||||
# split panes
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind s split-window -h -p 30 -c "#{pane_current_path}"
|
||||
bind s split-window -h -p 25 -c "#{pane_current_path}"
|
||||
bind v split-window -v -p 30 -c "#{pane_current_path}"
|
||||
|
||||
# switch panes
|
||||
@ -47,3 +47,4 @@ run -b '~/.tmux/plugins/tpm/tpm'
|
||||
run-shell ~/tmux-resurrect/resurrect.tmux
|
||||
|
||||
set -s escape-time 0
|
||||
set-option -g default-terminal "screen-256color"
|
||||
|
||||
112
vimrc
112
vimrc
@ -274,7 +274,7 @@ let g:NERDTrimTrailingWhitespace = 1
|
||||
let g:NERDToggleCheckAllLines = 1
|
||||
|
||||
Plug 'https://github.com/mcchrish/nnn.vim'
|
||||
nnoremap <leader>nn :NnnPicker '%:p:h'<CR>
|
||||
nnoremap <leader>nn :NnnPicker -de '%:p:h'<CR>
|
||||
|
||||
let g:nnn#action = {
|
||||
\ '<c-t>': 'tab-split',
|
||||
@ -301,6 +301,108 @@ Plug 'https://github.com/vifm/vifm.vim'
|
||||
|
||||
Plug 'https://github.com/gregsexton/gitv', {'on': ['Gitv']}
|
||||
|
||||
Plug 'stevearc/vim-arduino'
|
||||
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
|
||||
|
||||
Plug 'posva/vim-vue'
|
||||
|
||||
" set to 1, nvim will open the preview window after entering the markdown buffer
|
||||
" default: 0
|
||||
let g:mkdp_auto_start = 0
|
||||
|
||||
" set to 1, the nvim will auto close current preview window when change
|
||||
" from markdown buffer to another buffer
|
||||
" default: 1
|
||||
let g:mkdp_auto_close = 1
|
||||
|
||||
" set to 1, the vim will refresh markdown when save the buffer or
|
||||
" leave from insert mode, default 0 is auto refresh markdown as you edit or
|
||||
" move the cursor
|
||||
" default: 0
|
||||
let g:mkdp_refresh_slow = 0
|
||||
|
||||
" set to 1, the MarkdownPreview command can be use for all files,
|
||||
" by default it can be use in markdown file
|
||||
" default: 0
|
||||
let g:mkdp_command_for_global = 0
|
||||
|
||||
" set to 1, preview server available to others in your network
|
||||
" by default, the server listens on localhost (127.0.0.1)
|
||||
" default: 0
|
||||
let g:mkdp_open_to_the_world = 0
|
||||
|
||||
" use custom IP to open preview page
|
||||
" useful when you work in remote vim and preview on local browser
|
||||
" more detail see: https://github.com/iamcco/markdown-preview.nvim/pull/9
|
||||
" default empty
|
||||
let g:mkdp_open_ip = ''
|
||||
|
||||
" specify browser to open preview page
|
||||
" default: ''
|
||||
let g:mkdp_browser = ''
|
||||
|
||||
" set to 1, echo preview page url in command line when open preview page
|
||||
" default is 0
|
||||
let g:mkdp_echo_preview_url = 0
|
||||
|
||||
" a custom vim function name to open preview page
|
||||
" this function will receive url as param
|
||||
" default is empty
|
||||
let g:mkdp_browserfunc = ''
|
||||
|
||||
" options for markdown render
|
||||
" mkit: markdown-it options for render
|
||||
" katex: katex options for math
|
||||
" uml: markdown-it-plantuml options
|
||||
" maid: mermaid options
|
||||
" disable_sync_scroll: if disable sync scroll, default 0
|
||||
" sync_scroll_type: 'middle', 'top' or 'relative', default value is 'middle'
|
||||
" middle: mean the cursor position alway show at the middle of the preview page
|
||||
" top: mean the vim top viewport alway show at the top of the preview page
|
||||
" relative: mean the cursor position alway show at the relative positon of the preview page
|
||||
" hide_yaml_meta: if hide yaml metadata, default is 1
|
||||
" sequence_diagrams: js-sequence-diagrams options
|
||||
" content_editable: if enable content editable for preview page, default: v:false
|
||||
" disable_filename: if disable filename header for preview page, default: 0
|
||||
let g:mkdp_preview_options = {
|
||||
\ 'mkit': {},
|
||||
\ 'katex': {},
|
||||
\ 'uml': {},
|
||||
\ 'maid': {},
|
||||
\ 'disable_sync_scroll': 0,
|
||||
\ 'sync_scroll_type': 'middle',
|
||||
\ 'hide_yaml_meta': 1,
|
||||
\ 'sequence_diagrams': {},
|
||||
\ 'flowchart_diagrams': {},
|
||||
\ 'content_editable': v:false,
|
||||
\ 'disable_filename': 0
|
||||
\ }
|
||||
|
||||
" use a custom markdown style must be absolute path
|
||||
" like '/Users/username/markdown.css' or expand('~/markdown.css')
|
||||
let g:mkdp_markdown_css = ''
|
||||
|
||||
" use a custom highlight style must absolute path
|
||||
" like '/Users/username/highlight.css' or expand('~/highlight.css')
|
||||
let g:mkdp_highlight_css = ''
|
||||
|
||||
" use a custom port to start server or random for empty
|
||||
let g:mkdp_port = ''
|
||||
|
||||
" preview page title
|
||||
" ${name} will be replace with the file name
|
||||
let g:mkdp_page_title = '「${name}」'
|
||||
|
||||
" recognized filetypes
|
||||
" these filetypes will have MarkdownPreview... commands
|
||||
let g:mkdp_filetypes = ['markdown']
|
||||
|
||||
|
||||
Plug 'godlygeek/tabular'
|
||||
|
||||
Plug 'plasticboy/vim-markdown'
|
||||
|
||||
call plug#end()
|
||||
|
||||
set clipboard=unnamedplus
|
||||
@ -316,8 +418,8 @@ set modifiable
|
||||
nnoremap <leader>ct :set cursorline!<CR>
|
||||
|
||||
" Folding
|
||||
" set foldnestmax=2
|
||||
" set foldmethod=indent
|
||||
set foldnestmax=2
|
||||
set foldmethod=indent
|
||||
|
||||
set nofoldenable
|
||||
set splitbelow
|
||||
@ -355,8 +457,8 @@ nnoremap <F7> :SyntasticCheck<CR>
|
||||
nnoremap <F8> :SyntasticReset<CR>
|
||||
|
||||
" Fold / unfold with space
|
||||
" nnoremap <space> za
|
||||
" vnoremap <space> zf
|
||||
nnoremap <space> za
|
||||
vnoremap <space> zf
|
||||
|
||||
nnoremap <leader>dl <HOME>d$
|
||||
nnoremap <c-left> :bprevious<CR>
|
||||
|
||||
@ -17,7 +17,7 @@ rs() {python manage.py runserver 127.0.0."$1":"$2"}
|
||||
cheat() { curl cheat.sh/"$1" }
|
||||
cda() { conda activate "$@" }
|
||||
cdd() { conda deactivate "$@" }
|
||||
cdc() { conda create --name "$@" python=3.7 pip ipython memory_profiler django-extensions psycopg2 pre-commit black isort }
|
||||
cdc() { conda create --name "$@" python=3.7 pip ipython memory_profiler psycopg2 black isort }
|
||||
cdi() { conda info --envs "$@" }
|
||||
ca() { pygmentize -g "$@" }
|
||||
grepf() { grep -rnw ./ -e "$@"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user