From d1ed708ca0f0f8cb9724579f99b1e3c502ee5d2a Mon Sep 17 00:00:00 2001 From: piccihud Date: Fri, 27 Sep 2024 21:29:43 +0200 Subject: [PATCH] update dotfiles --- .bashrc | 6 ++---- .vimrc | 56 +++++++++++++++++++++++++-------------------------- rnr/bookmarks | 2 +- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/.bashrc b/.bashrc index d6f2f11..3eb85ba 100644 --- a/.bashrc +++ b/.bashrc @@ -124,7 +124,7 @@ export PATH="$PATH:HOME/.local/bin:$HOME/bin:$HOME/.local/share/flatpak/exports/ # alias -alias update="sudo apt update && sudo apt upgrade ; sudo apt autoremove ; flatpak upgrade -y ; flatpak uninstall --unused -y ; pipx upgrade-all" +alias update="sudo apt update && sudo apt upgrade ; sudo apt autoremove ; flatpak upgrade -y ; flatpak uninstall --unused -y" alias ll='eza -lh --icons -g' alias install="sudo apt install --no-install-recommends" alias purge="sudo apt purge -y" @@ -134,19 +134,17 @@ alias autopurge="sudo apt autopurge -y" alias search="apt search" alias v="vim 2> /dev/null" alias sv="sudo vim 2> /dev/null" +alias files_replace_space='for f in *\ *; do mv "$f" "${f// /_}"; done' alias ga="git add" alias push="git push -u origin master" alias pull="git pull" alias gs="git status" alias gm="git commit -m" -alias rr="rnr 2> /dev/null" alias ipc="ip --color a" alias ss="scrcpy -S" alias weather="curl https://wttr.in/Sacile" alias nn="ncdu --color dark" alias pd="pandoc -f markdown -t pdf --pdf-engine=xelatex -V lang=it -V colorlinks=true -V linkcolor=teal -V urlcolor=teal -V toccolor=gray --template eisvogel --listings -V table-use-row-colors=true" -alias fh="feh" -alias fhm="feh -m" # PS1 diff --git a/.vimrc b/.vimrc index 9e50f9d..a90b118 100755 --- a/.vimrc +++ b/.vimrc @@ -1,4 +1,4 @@ -" IMPOSTAZIONI ----------------------------------------------------------- {{{ +" IMPOSTAZIONI ----------------------------------------------------------- packadd! dracula colorscheme dracula @@ -48,10 +48,10 @@ set ttyfast " Speed up scrolling in Vim set encoding=UTF-8 set updatetime=300 set signcolumn=yes -" }}} +" -" PLUGINS ---------------------------------------------------------------- {{{ +" PLUGINS ---------------------------------------------------------------- " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim @@ -86,17 +86,17 @@ Plugin 'Valloric/YouCompleteMe' call vundle#end() " required -" }}}zo +" zo -" MAPPINGS --------------------------------------------------------------- {{{ +" MAPPINGS --------------------------------------------------------------- " Mappings code goes here. -" }}} +" -" VIMSCRIPT -------------------------------------------------------------- {{{ +" VIMSCRIPT -------------------------------------------------------------- " This will enable code folding. " zo per aprire una singola piega sotto il cursore. @@ -111,27 +111,27 @@ augroup END " More Vimscripts code goes here. -" }}} +" -" PREDICTIVE ------------------------------------------------------------- {{{ +" PREDICTIVE ------------------------------------------------------------- " let g:predictive#dict_path = expand($HOME . '/dict') let g:predictive#disable_plugin = 0 " -" }}} +" -" YOUCOMPLETEME ------------------------------------------------------------- {{{ +" YOUCOMPLETEME ------------------------------------------------------------- " let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/.ycm_extra_conf.py' let g:ycm_confirm_extra_conf=0 let g:ycm_python_binary_path='/usr/bin/python3' " -" }}} +" -" NERD-TREE ------------------------------------------------------------- {{{ +" NERD-TREE ------------------------------------------------------------- " " Start NERDTree and put the cursor back in the other window. "autocmd VimEnter * NERDTree | wincmd p" @@ -145,10 +145,10 @@ let g:ycm_python_binary_path='/usr/bin/python3' " Open the existing NERDTree on each new tab. "autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif -" }}} +" -" MD-FOLDING ------------------------------------------------------------- {{{ +" MD-FOLDING ------------------------------------------------------------- " let g:markdown_folding = 1 " @@ -162,10 +162,10 @@ let g:markdown_folding = 1 "zM close all folds "zr increase foldlevel by one "zR open all folds -" }}} +" -" MARK-DOWN-PREVIEW ----------------------------------------------------- {{{ +" MARK-DOWN-PREVIEW ----------------------------------------------------- " https://github.com/iamcco/markdown-preview.nvim " " set to 1, nvim will open the preview window after entering the markdown buffer @@ -266,10 +266,10 @@ let g:mkdp_filetypes = ['markdown'] " set default theme (dark or light) " By default the theme is define according to the preferences of the system let g:mkdp_theme = 'dark' -" }}} +" -" VIM-TAG --------------------------------------------------------------- {{{ +" VIM-TAG --------------------------------------------------------------- " " filenames like *.xml, *.html, *.xhtml, ... " These are the file extensions where this plugin is enabled. @@ -314,10 +314,10 @@ let g:closetag_shortcut = '>' " let g:closetag_close_shortcut = '>' -" }}} +" -" EMMET-PLUGIN --------------------------------------------------------- {{{ +" EMMET-PLUGIN --------------------------------------------------------- let g:user_emmet_settings = { \ 'variables': {'lang': 'ja'}, \ 'html': { @@ -339,18 +339,18 @@ let g:user_emmet_settings = { \ }, \ }, \} -" }}} +" -" RAINBOW PARENTHESES -------------------------------------------------- {{{ +" RAINBOW PARENTHESES -------------------------------------------------- " https://github.com/frazrepo/vim-rainbow let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta'] -"}}} -" MULTI-CURSOR --------------------------------------------------------- {{{ + +" MULTI-CURSOR --------------------------------------------------------- " https://github.com/mg979/vim-visual-multi "To make a basic selection, use the Ctrl+N keystroke in normal mode, followed by a motion: @@ -369,16 +369,16 @@ let g:multi_cursor_prev_key = '' let g:multi_cursor_skip_key = '' let g:multi_cursor_quit_key = '' -"}}} + -" VIM-LIGHTLINE --------------------------------------------------------- {{{ +" VIM-LIGHTLINE --------------------------------------------------------- " https://github.com/itchyny/lightline.vim let g:lightline = { \ 'colorscheme': 'wombat', \ } -" }}} +" " diff --git a/rnr/bookmarks b/rnr/bookmarks index 46f5835..68c4f9a 100644 --- a/rnr/bookmarks +++ b/rnr/bookmarks @@ -2,5 +2,5 @@ d:/home/dado/Downloads f:/home/dado/Downloads/Film g:/home/dado/git h:/home/dado -m:/media/dado +m:/home w:/home/dado/git/mywiki