Browse Source

Closes #76

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
71b6545ec0
  1. 12
      aliases/zsh_aliases
  2. 1
      configs/i3/config
  3. 4
      dotfiles/.vimrc
  4. 9
      scripts/backup.sh
  5. 6
      txt/exlude-dirs-backup.txt

12
aliases/zsh_aliases

@ -46,12 +46,18 @@ function lzip() { unzip -l $1 | less; }
alias mkpk="makepkg -sri"
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"
alias mkex="chmod 777"
alias ctle="systemctl enable"
alias ctls="systemctl start"
# }}} mounting #
# }}} command line related #

1
configs/i3/config

@ -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

4
dotfiles/.vimrc

@ -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

9
scripts/backup.sh

@ -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

@ -0,0 +1,6 @@
/home/kevin/.cache/spotify/Storage
/lost+found
/mnt
/proc
/run
/sys
Loading…
Cancel
Save