Compare commits

...

6 Commits

3 changed files with 24 additions and 1 deletions

View File

@ -213,6 +213,9 @@ highlight ColorColumn ctermbg=236
" map
nnoremap S :%s//g<Left><Left>
vnoremap S :s//g<Left><Left>
vnoremap F <C-v>$A
vnoremap f <C-v>0I
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
map <C-d> :NERDTreeToggle<CR>
nnoremap <silent> <C-t> :tabnew <CR>
@ -257,6 +260,10 @@ map <Leader>, :CocAction<CR>
map <Leader><Tab> Vgaip= <CR>
nnoremap <leader>x :!chmod +x %<CR>
" Python
autocmd BufRead,BufNewFile *.py set textwidth=0
autocmd BufRead,BufNewFile *.py set fo-=t
" latex
let g:tex_flavor = "latex"
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!

3
.gitignore vendored
View File

@ -1,4 +1,6 @@
.config/backup-started*
.Xauthority
.matplotlib
.Trash
.DS_Store
.ansible
@ -247,3 +249,4 @@ notes.org
.config/gh/config.yml
.config/gh/hosts.yml
.local/state/gh/state.yml
.emacs.d/ido.last~

View File

@ -1,6 +1,7 @@
#!/bin/bash
MEGA_VOLUME="/Volumes/MEGA"
ELEMENTS="/Volumes/ELEMENTS"
MEGA="$HOME/MEGA"
STARTED="$HOME/.config/backup-started-$(date +%d-%m)"
@ -11,11 +12,22 @@ function main(){
$MEGA/Documents/Collage/Semestr2"
rsync --bwlimit=2048 --update --progress -r \
--exclude '*.mp4' --exclude '*.mkv'\
--exclude '.debris' \
"$HOME/Documents/Collage/Semestr2/"\
"$MEGA/Documents/Collage/Semestr2/"
echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\
$MEGA/Documents/Collage/"
echo -e "[LOG] $(date) Started $HOME/Documents/Collage/Semestr2 ->\
$ELEMENTS/Collage/Semestr2"
rsync --bwlimit=2048 --update --progress -r \
--exclude '*.mp4' --exclude '*.mkv'\
--exclude '.debris' \
"$HOME/Documents/Collage/Semestr2/"\
"$ELEMENTS/Collage/Semestr2/"
echo -e "[LOG] $(date) Ended $HOME/Documents/Collage/Semestr2 ->\
$ELEMENTS/Documents/Collage/"
touch "$STARTED" && echo -e "[LOG] $(date) Created the file $STARTED"
echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh"
@ -30,6 +42,7 @@ $MEGA/Documents/Collage/"
then
echo -e "[LOG] $(date) Started $MEGA -> $MEGA_VOLUME"
rsync --bwlimit=2048 --update --progress -r --exclude '.DS_Store' \
--exclude '.debris' \
--exclude 'Icon*' \
"$MEGA/" "$MEGA_VOLUME/"
else