update dotfiles

This commit is contained in:
piccihud 2024-09-27 21:29:43 +02:00
parent 17ec98587f
commit d1ed708ca0
3 changed files with 31 additions and 33 deletions

View File

@ -124,7 +124,7 @@ export PATH="$PATH:HOME/.local/bin:$HOME/bin:$HOME/.local/share/flatpak/exports/
# alias # 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 ll='eza -lh --icons -g'
alias install="sudo apt install --no-install-recommends" alias install="sudo apt install --no-install-recommends"
alias purge="sudo apt purge -y" alias purge="sudo apt purge -y"
@ -134,19 +134,17 @@ alias autopurge="sudo apt autopurge -y"
alias search="apt search" alias search="apt search"
alias v="vim 2> /dev/null" alias v="vim 2> /dev/null"
alias sv="sudo 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 ga="git add"
alias push="git push -u origin master" alias push="git push -u origin master"
alias pull="git pull" alias pull="git pull"
alias gs="git status" alias gs="git status"
alias gm="git commit -m" alias gm="git commit -m"
alias rr="rnr 2> /dev/null"
alias ipc="ip --color a" alias ipc="ip --color a"
alias ss="scrcpy -S" alias ss="scrcpy -S"
alias weather="curl https://wttr.in/Sacile" alias weather="curl https://wttr.in/Sacile"
alias nn="ncdu --color dark" 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 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 # PS1

56
.vimrc
View File

@ -1,4 +1,4 @@
" IMPOSTAZIONI ----------------------------------------------------------- {{{ " IMPOSTAZIONI -----------------------------------------------------------
packadd! dracula packadd! dracula
colorscheme dracula colorscheme dracula
@ -48,10 +48,10 @@ set ttyfast " Speed up scrolling in Vim
set encoding=UTF-8 set encoding=UTF-8
set updatetime=300 set updatetime=300
set signcolumn=yes set signcolumn=yes
" }}} "
" PLUGINS ---------------------------------------------------------------- {{{ " PLUGINS ----------------------------------------------------------------
" set the runtime path to include Vundle and initialize " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
@ -86,17 +86,17 @@ Plugin 'Valloric/YouCompleteMe'
call vundle#end() " required call vundle#end() " required
" }}}zo " zo
" MAPPINGS --------------------------------------------------------------- {{{ " MAPPINGS ---------------------------------------------------------------
" Mappings code goes here. " Mappings code goes here.
" }}} "
" VIMSCRIPT -------------------------------------------------------------- {{{ " VIMSCRIPT --------------------------------------------------------------
" This will enable code folding. " This will enable code folding.
" zo per aprire una singola piega sotto il cursore. " zo per aprire una singola piega sotto il cursore.
@ -111,27 +111,27 @@ augroup END
" More Vimscripts code goes here. " More Vimscripts code goes here.
" }}} "
" PREDICTIVE ------------------------------------------------------------- {{{ " PREDICTIVE -------------------------------------------------------------
" "
let g:predictive#dict_path = expand($HOME . '/dict') let g:predictive#dict_path = expand($HOME . '/dict')
let g:predictive#disable_plugin = 0 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_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/.ycm_extra_conf.py'
let g:ycm_confirm_extra_conf=0 let g:ycm_confirm_extra_conf=0
let g:ycm_python_binary_path='/usr/bin/python3' let g:ycm_python_binary_path='/usr/bin/python3'
" "
" }}} "
" NERD-TREE ------------------------------------------------------------- {{{ " NERD-TREE -------------------------------------------------------------
" "
" Start NERDTree and put the cursor back in the other window. " Start NERDTree and put the cursor back in the other window.
"autocmd VimEnter * NERDTree | wincmd p" "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. " Open the existing NERDTree on each new tab.
"autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif "autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
" }}} "
" MD-FOLDING ------------------------------------------------------------- {{{ " MD-FOLDING -------------------------------------------------------------
" "
let g:markdown_folding = 1 let g:markdown_folding = 1
" "
@ -162,10 +162,10 @@ let g:markdown_folding = 1
"zM close all folds "zM close all folds
"zr increase foldlevel by one "zr increase foldlevel by one
"zR open all folds "zR open all folds
" }}} "
" MARK-DOWN-PREVIEW ----------------------------------------------------- {{{ " MARK-DOWN-PREVIEW -----------------------------------------------------
" https://github.com/iamcco/markdown-preview.nvim " https://github.com/iamcco/markdown-preview.nvim
" "
" set to 1, nvim will open the preview window after entering the markdown buffer " 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) " set default theme (dark or light)
" By default the theme is define according to the preferences of the system " By default the theme is define according to the preferences of the system
let g:mkdp_theme = 'dark' let g:mkdp_theme = 'dark'
" }}} "
" VIM-TAG --------------------------------------------------------------- {{{ " VIM-TAG ---------------------------------------------------------------
" "
" filenames like *.xml, *.html, *.xhtml, ... " filenames like *.xml, *.html, *.xhtml, ...
" These are the file extensions where this plugin is enabled. " These are the file extensions where this plugin is enabled.
@ -314,10 +314,10 @@ let g:closetag_shortcut = '>'
" "
let g:closetag_close_shortcut = '<leader>>' let g:closetag_close_shortcut = '<leader>>'
" }}} "
" EMMET-PLUGIN --------------------------------------------------------- {{{ " EMMET-PLUGIN ---------------------------------------------------------
let g:user_emmet_settings = { let g:user_emmet_settings = {
\ 'variables': {'lang': 'ja'}, \ 'variables': {'lang': 'ja'},
\ 'html': { \ 'html': {
@ -339,18 +339,18 @@ let g:user_emmet_settings = {
\ }, \ },
\ }, \ },
\} \}
" }}} "
" RAINBOW PARENTHESES -------------------------------------------------- {{{ " RAINBOW PARENTHESES --------------------------------------------------
" https://github.com/frazrepo/vim-rainbow " https://github.com/frazrepo/vim-rainbow
let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta'] let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
"}}}
" MULTI-CURSOR --------------------------------------------------------- {{{
" MULTI-CURSOR ---------------------------------------------------------
" https://github.com/mg979/vim-visual-multi " https://github.com/mg979/vim-visual-multi
"To make a basic selection, use the Ctrl+N keystroke in normal mode, followed by a motion: "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 = '<C-p>'
let g:multi_cursor_skip_key = '<C-x>' let g:multi_cursor_skip_key = '<C-x>'
let g:multi_cursor_quit_key = '<Esc>' let g:multi_cursor_quit_key = '<Esc>'
"}}}
" VIM-LIGHTLINE --------------------------------------------------------- {{{
" VIM-LIGHTLINE ---------------------------------------------------------
" https://github.com/itchyny/lightline.vim " https://github.com/itchyny/lightline.vim
let g:lightline = { let g:lightline = {
\ 'colorscheme': 'wombat', \ 'colorscheme': 'wombat',
\ } \ }
" }}} "
" "

View File

@ -2,5 +2,5 @@ d:/home/dado/Downloads
f:/home/dado/Downloads/Film f:/home/dado/Downloads/Film
g:/home/dado/git g:/home/dado/git
h:/home/dado h:/home/dado
m:/media/dado m:/home
w:/home/dado/git/mywiki w:/home/dado/git/mywiki