Browse Source

Update

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
1ee338e4a3
  1. 14
      aliases/zsh_aliases
  2. 4
      configs/i3/config
  3. 2
      dotfiles/vimrc

14
aliases/zsh_aliases

@ -37,7 +37,7 @@ alias grep='grep --color=auto'
# for finding files by name
function rfnd() { find . -name "$1" ; }
# find text inside files
function rgrp() { grep -nr $1 * ; }
function rg() { grep -nr $1 * ; }
function cpd() { cp -avr $1 $2 ; }
# extract tar archive
@ -115,7 +115,7 @@ function aptr() { sudo apt remove $1 ; }
# config files {{{ #
alias lc="f ~/linux-config/"
function rlc() { grep -nr $1 ~/linux-config ; }
function glc() { grep $1 ~/linux-config/aliases/zsh_aliases ; }
alias lca="f ~/linux-config/aliases"
alias vv="ni ~/.vimrc"
@ -143,7 +143,7 @@ alias tm="ni $usnp_dir/texmath.snippets"
# }}} config files #
# applications {{{ #
alias rg="ranger"
alias ran="ranger"
# okular
function ok() { nohup okular $1 > /dev/null 2>&1& ; }
# xviewer
@ -282,8 +282,9 @@ alias cdn="$cd_coding_dir"
alias ans="f /usr/local/android-studio/bin && ./studio.sh"
alias gx="ni ~/Documents/csgo-config/autoexec.cfg"
alias jn="ni ~/Documents/journal/9.md"
alias jnt="ni ~/Documents/journal/todo.md"
alias jnd="f ~/Documents/journal"
alias jn="ni ~/Documents/journal/todo/9.md"
alias jnt="ni ~/Documents/journal/todo/todo.md"
alias rs="f ~/Documents/runescape"
# ideas {{{ #
@ -343,6 +344,9 @@ alias djs="python manage.py shell"
alias sch="f ~/Documents/school"
alias sta="f ~/Documents/school/sta"
# 236
alias 236="f ~/Documents/school/236"
alias a1="f ~/Documents/school/latex-notes/236/a1"
# }}} school #

4
configs/i3/config

@ -161,7 +161,7 @@ set $ws7 "7 "
workspace $ws7 output $samsung
bindsym $mod+F7 workspace $ws7; exec $def_term
set $ws8 "8 "
set $ws8 "8 🕮"
# assign [class="jetbrains-"] $ws8
bindsym $mod+F8 workspace $ws8; exec $def_term
@ -175,7 +175,7 @@ workspace $ws10 output $samsung
bindsym $mod+F10 workspace $ws10; exec $def_term
bindsym Mod4+s workspace $ws10; exec spotify
set $ws11 "11 "
set $ws11 "11 "
workspace $ws11 output $benq
bindsym $mod+F11 workspace $ws11; exec $def_term

2
dotfiles/vimrc

@ -194,6 +194,8 @@ nnoremap <leader>s :set syn=sh<CR>
nnoremap <leader>w Vgq
" format this and next line
nnoremap <leader>ww Vjgq
" format current 3 lines
nnoremap <leader>www V2jgq
" toggle fold
nnoremap <leader>z za
" copy next thing to system clipboard

Loading…
Cancel
Save