Closes #76
This commit is contained in:
@@ -46,13 +46,19 @@ function lzip() { unzip -l $1 | less; }
|
||||
|
||||
alias mkpk="makepkg -sri"
|
||||
alias mkex="chmod 777"
|
||||
alias udm="udisksctl mount -b"
|
||||
alias udu="udisksctl unmount -b"
|
||||
alias udub="udisksctl unmount -b /dev/sdc2"
|
||||
alias mkex="chmod 777"
|
||||
alias ctle="systemctl enable"
|
||||
alias ctls="systemctl start"
|
||||
|
||||
|
||||
# mounting {{{ #
|
||||
|
||||
alias udm="udisksctl mount -b"
|
||||
alias udmb="udisksctl mount -b /dev/sdc2"
|
||||
alias udu="udisksctl unmount -b"
|
||||
alias udub="udisksctl unmount -b /dev/sdc2"
|
||||
|
||||
# }}} mounting #
|
||||
|
||||
# }}} command line related #
|
||||
|
||||
# directory-related {{{ #
|
||||
|
||||
@@ -37,6 +37,7 @@ bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf
|
||||
bindsym Mod4+n exec nemo
|
||||
bindsym Mod4+p workspace $ws4; exec pgadmin3
|
||||
# bindsym Mod4+p exec pycharm
|
||||
bindsym Mod4+q exec qdirstat
|
||||
bindsym Mod4+r exec urxvt -e ranger
|
||||
bindsym control+$mod+s exec systemctl suspend
|
||||
bindsym Mod4+t exec st
|
||||
|
||||
@@ -128,7 +128,7 @@ Plug 'easymotion/vim-easymotion'
|
||||
|
||||
" status bar displaying various info about the current buffer
|
||||
Plug 'vim-airline/vim-airline'
|
||||
" let g:airline_section_c = '%F'
|
||||
let g:airline_section_c = '%F'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
||||
@@ -210,6 +210,8 @@ nnoremap <leader>ht :set tabstop=2 shiftwidth=2 expandtab<CR>
|
||||
nnoremap <leader>vhe :vert help
|
||||
" move cursor to middle of line
|
||||
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
|
||||
" apply normal command to selection
|
||||
vnoremap <leader>n q:anorm
|
||||
" don't wrap lines
|
||||
nnoremap <leader>nw :set nowrap<CR>
|
||||
" check if in neovim
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Backup destination
|
||||
backup_dest=/run/media/kevin/pc-backup/backups/nzxt
|
||||
backup_dest="/run/media/kevin/pc-backup/backups/nzxt"
|
||||
exclude_dirs_list="/home/kevin/linux-config/txt/exlude-dirs-backup.txt"
|
||||
|
||||
# Labels for backup name
|
||||
distro=arch
|
||||
distro="arch"
|
||||
datetime=$(date "+%m.%d-%H.%M")
|
||||
backupfile="$backup_dest/$datetime-$distro.tar.gz"
|
||||
backup_file="$backup_dest/$datetime-$distro.tar.gz"
|
||||
|
||||
sudo tar -czpvf "$backupfile" --exclude=/lost+found --exclude=/mnt --exclude=/proc --exclude=/run --exclude=/sys /
|
||||
sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" /
|
||||
|
||||
6
txt/exlude-dirs-backup.txt
Normal file
6
txt/exlude-dirs-backup.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
/home/kevin/.cache/spotify/Storage
|
||||
/lost+found
|
||||
/mnt
|
||||
/proc
|
||||
/run
|
||||
/sys
|
||||
Reference in New Issue
Block a user