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.

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