Compare commits

...

6 Commits

3 changed files with 24 additions and 1 deletions

View File

@ -213,6 +213,9 @@ highlight ColorColumn ctermbg=236
" map " map
nnoremap S :%s//g<Left><Left> 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> nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
map <C-d> :NERDTreeToggle<CR> map <C-d> :NERDTreeToggle<CR>
nnoremap <silent> <C-t> :tabnew <CR> nnoremap <silent> <C-t> :tabnew <CR>
@ -257,6 +260,10 @@ map <Leader>, :CocAction<CR>
map <Leader><Tab> Vgaip= <CR> map <Leader><Tab> Vgaip= <CR>
nnoremap <leader>x :!chmod +x %<CR> nnoremap <leader>x :!chmod +x %<CR>
" Python
autocmd BufRead,BufNewFile *.py set textwidth=0
autocmd BufRead,BufNewFile *.py set fo-=t
" latex " latex
let g:tex_flavor = "latex" let g:tex_flavor = "latex"
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw! 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 .Xauthority
.matplotlib
.Trash .Trash
.DS_Store .DS_Store
.ansible .ansible
@ -247,3 +249,4 @@ notes.org
.config/gh/config.yml .config/gh/config.yml
.config/gh/hosts.yml .config/gh/hosts.yml
.local/state/gh/state.yml .local/state/gh/state.yml
.emacs.d/ido.last~

View File

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