Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

  1. # Initialize Other Alias Files {{{ #
  2. alias_folder="~/linux-config/aliases"
  3. alias_type="school git pc"
  4. for type in $alias_type; do
  5. . ~/linux-config/aliases/."$type"_aliases
  6. done
  7. # }}}
  8. # System {{{ #
  9. alias l='ls -a'
  10. alias ll='ls -alF'
  11. alias cs='printf "\033c"'
  12. shopt -s dotglob
  13. alias lo="i3-msg exit"
  14. alias s="systemctl suspend"
  15. alias sd="sudo shutdown 0"
  16. alias reb="sudo shutdown -r 0"
  17. alias hst="history"
  18. alias rmsw="rm .sw*"
  19. alias nf="neofetch"
  20. alias vlm="alsamixer -c 1"
  21. # }}} System #
  22. # Directories {{{ #
  23. # unalias c
  24. d() { cd "$@" && ls -a ; }
  25. cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
  26. alias "d."="cd_up"
  27. alias dd="d ~/Downloads"
  28. alias cfg="d ~/.config"
  29. # }}} #
  30. ok() { okular $1 ; }
  31. rfnd() { find . -name "$1" ; }
  32. # rfnde() { find . -name "*.$1" ; }
  33. rgrp() { grep -r $1 * ; }
  34. grpy() { grep $1 *.py ; }
  35. p3() { python3 $1 ; }
  36. py() { python $1 ; }
  37. # Config {{{ #
  38. alias lc="d ~/linux-config/"
  39. alias vv="vi ~/.vimrc"
  40. alias r=". ~/.bashrc"
  41. # aliases
  42. alias lca="d ~/linux-config/aliases"
  43. alias vb="vi $alias_folder/.bash_aliases"
  44. alias vs="vi $alias_folder/.school_aliases"
  45. alias vag="vi $alias_folder/.git_aliases"
  46. alias vap="vi $alias_folder/.pc_aliases"
  47. # }}} Config #
  48. # redshift
  49. rs(){ redshift -O $(($1 * 1000)) ; }
  50. alias rx="redshift -x"
  51. mrk() { pandoc -o ${1%.*}.html $1 && chr ${1%.*}.html ; }
  52. # UltiSnips {{{ #
  53. usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
  54. alias snp="d $usnp_dir"
  55. vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  56. alias tm="vi $usnp_dir/texmath.snippets"
  57. # }}} #