From e36bdb347a9711100f5fb0e9c8cab68b82eeb192 Mon Sep 17 00:00:00 2001 From: piccihud Date: Sat, 2 Sep 2023 13:54:58 +0200 Subject: [PATCH] added new config files --- linux/bash/bashrc | 2 +- linux/bash/inputrc | 26 +++++++++--------- .../asset/fstab/fstab.jpg | Bin linux/{hardware => filesystem}/dd.md | 0 linux/{hardware => filesystem}/formatfs.md | 0 linux/{hardware => filesystem}/fstab.md | 0 linux/{hardware => filesystem}/infohw.md | 0 .../megabit_megabyte.md | 0 linux/{hardware => filesystem}/mount.md | 0 linux/{hardware => filesystem}/smartctl.md | 0 linux/{hardware => filesystem}/uuid.md | 0 linux/neofetch/config.conf | 2 +- linux/ranger/rifle.conf | 2 +- linux/script/crontab | 23 ++++++++-------- linux/vim/vimrc | 23 ++++++++++------ 15 files changed, 43 insertions(+), 35 deletions(-) rename linux/{hardware => filesystem}/asset/fstab/fstab.jpg (100%) rename linux/{hardware => filesystem}/dd.md (100%) rename linux/{hardware => filesystem}/formatfs.md (100%) rename linux/{hardware => filesystem}/fstab.md (100%) rename linux/{hardware => filesystem}/infohw.md (100%) rename linux/{hardware => filesystem}/megabit_megabyte.md (100%) rename linux/{hardware => filesystem}/mount.md (100%) rename linux/{hardware => filesystem}/smartctl.md (100%) rename linux/{hardware => filesystem}/uuid.md (100%) diff --git a/linux/bash/bashrc b/linux/bash/bashrc index 645db66..7c29ef7 100644 --- a/linux/bash/bashrc +++ b/linux/bash/bashrc @@ -195,5 +195,5 @@ if [[ $- =~ .*i.* ]]; then bind '"\C-xk": "\C-a hstr -k \C-j"'; fi export EDITOR='vim' export VISUAL='vim' -set -o vi +#set -o vi #set show-mode-in-prompt on diff --git a/linux/bash/inputrc b/linux/bash/inputrc index 2700b45..cbe1681 100644 --- a/linux/bash/inputrc +++ b/linux/bash/inputrc @@ -1,8 +1,8 @@ -#"\e[5~": history-search-backward -#"\e[6~": history-search-forward +"\e[5~": history-search-backward +"\e[6~": history-search-forward -set editing-mode vi -set show-mode-in-prompt on +#set editing-mode vi +#set show-mode-in-prompt on # SET THE MODE STRING AND CURSOR TO INDICATE THE VIM MODE # FOR THE NUMBER AFTER `\e[`: @@ -13,14 +13,14 @@ set show-mode-in-prompt on # 4: steady underline # 5: blinking bar (xterm) # 6: steady bar (xterm) -set vi-ins-mode-string (ins)\1\e[5 q\2 -set vi-cmd-mode-string (cmd)\1\e[1 q\2 +#set vi-ins-mode-string (ins)\1\e[5 q\2 +#set vi-cmd-mode-string (cmd)\1\e[1 q\2 # -$if mode=vi - set keymap vi-command - "k": history-substring-search-backward - "j": history-substring-search-forward +#$if mode=vi + #set keymap vi-command + #"k": history-substring-search-backward + #"j": history-substring-search-forward # - set keymap vi-insert - "\C-l": clear-screen -$endif + #set keymap vi-insert + #"\C-l": clear-screen +#$endif diff --git a/linux/hardware/asset/fstab/fstab.jpg b/linux/filesystem/asset/fstab/fstab.jpg similarity index 100% rename from linux/hardware/asset/fstab/fstab.jpg rename to linux/filesystem/asset/fstab/fstab.jpg diff --git a/linux/hardware/dd.md b/linux/filesystem/dd.md similarity index 100% rename from linux/hardware/dd.md rename to linux/filesystem/dd.md diff --git a/linux/hardware/formatfs.md b/linux/filesystem/formatfs.md similarity index 100% rename from linux/hardware/formatfs.md rename to linux/filesystem/formatfs.md diff --git a/linux/hardware/fstab.md b/linux/filesystem/fstab.md similarity index 100% rename from linux/hardware/fstab.md rename to linux/filesystem/fstab.md diff --git a/linux/hardware/infohw.md b/linux/filesystem/infohw.md similarity index 100% rename from linux/hardware/infohw.md rename to linux/filesystem/infohw.md diff --git a/linux/hardware/megabit_megabyte.md b/linux/filesystem/megabit_megabyte.md similarity index 100% rename from linux/hardware/megabit_megabyte.md rename to linux/filesystem/megabit_megabyte.md diff --git a/linux/hardware/mount.md b/linux/filesystem/mount.md similarity index 100% rename from linux/hardware/mount.md rename to linux/filesystem/mount.md diff --git a/linux/hardware/smartctl.md b/linux/filesystem/smartctl.md similarity index 100% rename from linux/hardware/smartctl.md rename to linux/filesystem/smartctl.md diff --git a/linux/hardware/uuid.md b/linux/filesystem/uuid.md similarity index 100% rename from linux/hardware/uuid.md rename to linux/filesystem/uuid.md diff --git a/linux/neofetch/config.conf b/linux/neofetch/config.conf index f600c96..5ca4906 100644 --- a/linux/neofetch/config.conf +++ b/linux/neofetch/config.conf @@ -760,7 +760,7 @@ image_source="auto" # Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian, # postmarketOS, and Void have a smaller logo variant. # Use '{distro name}_small' to use the small variants. -ascii_distro="tux" +ascii_distro="Devuan" # Ascii Colors # diff --git a/linux/ranger/rifle.conf b/linux/ranger/rifle.conf index ba34e96..d508db9 100644 --- a/linux/ranger/rifle.conf +++ b/linux/ranger/rifle.conf @@ -1,5 +1,5 @@ ext css|md|conf|txt|sh = vim "$@" -ext ogv|mp4|avi|mkv|ogg = mpv "$@" +ext ogv|mp3|mp4|avi|mkv|ogg = mpv "$@" ext pdf|epub = okular "$@" ext png|jpg = feh "$@" ext cb[zr] = qcomicbook "$@" diff --git a/linux/script/crontab b/linux/script/crontab index f48fb4e..53500ff 100644 --- a/linux/script/crontab +++ b/linux/script/crontab @@ -9,15 +9,16 @@ 0 9,21,22 * * * pg_dump cinema > ~/Nextcloud/Database/db.sql #0 9,20 * * * nice -n 19 clamscan -ir $HOME --log=clamavlog.txt --move=$HOME/quarantine/ 2>&1 -0 22 * * * /usr/bin/rsync -az --delete --exclude=Nextcloud ~/ /media/davide/Backup/Desktop/ && date >> ~/backup.log -0 9,15,20 * * * rsync -aPz ~/.bashrc ~/Documenti/repos/mywiki/linux/bash/bashrc -0 9,15,20 * * * rsync -aPz ~/.inputrc ~/Documenti/repos/mywiki/linux/bash/inputrc -0 9,15,20 * * * rsync -aPz ~/.config/alacritty/alacritty.yml ~/Documenti/repos/mywiki/linux/alacritty/alacritty.yml -0 9,15,20 * * * rsync -aPz ~/.config/feh/ ~/Documenti/repos/mywiki/linux/feh/ -0 9,15,20 * * * rsync -aPz ~/.config/neofetch/ ~/Documenti/repos/mywiki/linux/neofetch/ -0 9,15,20 * * * rsync -aPz ~/.config/ranger/ ~/Documenti/repos/mywiki/linux/ranger/ -0 9,15,20 * * * rsync -aPz ~/.config/rnr/ ~/Documenti/repos/mywiki/linux/rnr/ -0 9,15,20 * * * rsync -aPz ~/.vimrc ~/Documenti/repos/mywiki/linux/vim/vimrc -0 9,15,20 * * * rsync -aPz ~/.xbindkeysrc /home/davide/Documenti/repos/mywiki/linux/xbindkeys/xbindkeysrc -0 9,15,20 * * * rsync -aPz ~/.tmux.conf /home/davide/Documenti/repos/mywiki/linux/tmux/tmux.conf +0 22 * * * /usr/bin/rsync -az --delete --exclude=Nextcloud --exclude='VirtualBox VMs' ~/ /media/davide/Backup/Desktop/ && date >> ~/backup.log +0 9,15,20 * * * rsync -az ~/.bashrc ~/Documenti/repos/mywiki/linux/bash/bashrc +0 9,15,20 * * * rsync -az ~/.inputrc ~/Documenti/repos/mywiki/linux/bash/inputrc +0 9,15,20 * * * rsync -az ~/.config/alacritty/alacritty.yml ~/Documenti/repos/mywiki/linux/alacritty/alacritty.yml +0 9,15,20 * * * rsync -az ~/.config/feh/ ~/Documenti/repos/mywiki/linux/feh/ +0 9,15,20 * * * rsync -az ~/.config/neofetch/ ~/Documenti/repos/mywiki/linux/neofetch/ +0 9,15,20 * * * rsync -az ~/.config/ranger/ ~/Documenti/repos/mywiki/linux/ranger/ +0 9,15,20 * * * rsync -az ~/.config/rnr/ ~/Documenti/repos/mywiki/linux/rnr/ +0 9,15,20 * * * rsync -az ~/.vimrc ~/Documenti/repos/mywiki/linux/vim/vimrc +0 9,15,20 * * * rsync -az ~/.xbindkeysrc /home/davide/Documenti/repos/mywiki/linux/xbindkeys/xbindkeysrc +0 9,15,20 * * * rsync -az ~/.tmux.conf /home/davide/Documenti/repos/mywiki/linux/tmux/tmux.conf +0 9,15,22 * * * rsync -az ~/Sync/Task/🎲ToDo.org ~/Nextcloud/Notes/ 0 9,15,20 * * * crontab -l > ~/Documenti/repos/mywiki/linux/script/crontab diff --git a/linux/vim/vimrc b/linux/vim/vimrc index 921408a..c331d49 100755 --- a/linux/vim/vimrc +++ b/linux/vim/vimrc @@ -2,7 +2,12 @@ packadd! dracula colorscheme dracula -" transparent bg +set completeopt=longest,menuone +setlocal complete+=k +set dictionary+=/home/davide/.vim/dict/dict_it.txt +set wrap +set linebreak +set expandtab autocmd vimenter * hi Normal guibg=NONE ctermbg=NONE set spell spelllang=it,en syntax on " Enable type file detection. Vim will be able to try to detect the type of file in use. @@ -30,23 +35,22 @@ set relativenumber set clipboard=unnamedplus set cursorline " Highlight cursor line underneath the cursor horizontally. set nobackup " Do not save backup files. -set nowrap " Do not wrap lines. Allow long lines to extend as far as the line goes. set incsearch " While searching though a file incrementally highlight matching characters as you type. set ignorecase " Ignore capital letters during search. set smartcase " This will allow you to search specifically for capital letters. set showmode " Show the mode you are on the last line. set showmatch " Show matching words during a search. -set hlsearch " Use highlighting when doing a search. set wildmenu " Enable auto completion menu after pressing TAB. set wildmode=list:longest " Make wildmenu behave like similar to Bash completion. set foldenable set foldmethod=indent set ttyfast " Speed up scrolling in Vim set encoding=UTF-8 -set nobackup " Neoclide -set nowritebackup +"set nowritebackup set updatetime=300 set signcolumn=yes +set smarttab "la tabulazione viene eseguita in automatico in modo intelligente +set tabstop=8 "imposta il valore della tabulazione (solitamente viene cosigliato 4 o 8) " }}} @@ -61,6 +65,8 @@ Plugin 'VundleVim/Vundle.vim' " " All of your Plugins must be added before the following line " + +"Plugin 'lifepillar/vim-mucomplete' Plugin 'neoclide/coc.nvim', {'branch': 'release'} Plugin 'itchyny/vim-cursorword' Plugin 'preservim/nerdtree' @@ -73,7 +79,6 @@ Plugin 'frazrepo/vim-rainbow' Plugin 'mg979/vim-visual-multi', {'branch': 'master'} Plugin 'itchyny/lightline.vim' Plugin 'voldikss/vim-floaterm' -Bundle 'https://github.com/prashanthellina/follow-markdown-links' Plugin 'mracos/mermaid.vim' Plugin 'mzlogin/vim-markdown-toc' Plugin 'bbrtj/vim-vorg-md' @@ -111,8 +116,10 @@ augroup END " PREDICTIVE ------------------------------------------------------------- {{{ " -let g:predictive#dict_path = expand($HOME . '/dict') -let g:predictive#disable_plugin = 0 +" https://www.reddit.com/r/vim/comments/12qezjf/english_dictionary_autocompletion/?rdt=55684 +"let g:mucomplete#enable_auto_at_startup = v:true +"let g:mucomplete#chains = #{default: ['dict']} +"set dictionary=/home/davide/.vim/dict/dict_it.txt " " }}}