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.

61 lines
1.4 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. rgrp() { grep -r $1 * ; }
  33. p3() { python3 $1 ; }
  34. py() { python $1 ; }
  35. # Config {{{ #
  36. alias lc="d ~/linux-config/"
  37. alias vv="vi ~/.vimrc"
  38. alias r=". ~/.bashrc"
  39. # aliases
  40. alias lca="d ~/linux-config/aliases"
  41. alias vb="vi $alias_folder/.bash_aliases"
  42. alias vs="vi $alias_folder/.school_aliases"
  43. alias vag="vi $alias_folder/.git_aliases"
  44. alias vap="vi $alias_folder/.pc_aliases"
  45. # }}} Config #
  46. # redshift
  47. rs(){ redshift -O $(($1 * 1000)) ; }
  48. alias rx="redshift -x"
  49. mrk() { pandoc -o ${1%.*}.html $1 && chr ${1%.*}.html ; }
  50. # UltiSnips {{{ #
  51. usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
  52. alias snp="d $usnp_dir"
  53. vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  54. alias tm="vi $usnp_dir/texmath.snippets"
  55. # }}} #