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.

53 lines
1.2 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 reb="sudo shutdown -r 0"
  14. alias sd="sudo shutdown 0"
  15. alias s="systemctl suspend"
  16. alias hst="history"
  17. alias topo="top -o %MEM"
  18. alias rmsw="rm .sw*"
  19. # }}} System #
  20. # Directories {{{ #
  21. # unalias c
  22. d() { cd "$@" && ls -a ; }
  23. cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
  24. alias "d."="cd_up"
  25. alias dd="d ~/Downloads"
  26. # }}} #
  27. ok() { okular $1 ; }
  28. # Config {{{ #
  29. alias lc="d ~/linux-config/"
  30. alias vv="vi ~/.vimrc"
  31. alias r=". ~/.bashrc"
  32. # aliases
  33. alias lca="d ~/linux-config/aliases"
  34. alias vb="vi $alias_folder/.bash_aliases"
  35. alias vs="vi $alias_folder/.school_aliases"
  36. alias vag="vi $alias_folder/.git_aliases"
  37. alias vap="vi $alias_folder/.pc_aliases"
  38. # }}} Config #
  39. # redshift
  40. rs(){ redshift -O $(($1 * 1000)) ; }
  41. alias rx="redshift -x"
  42. # UltiSnips {{{ #
  43. usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
  44. alias snp="d $usnp_dir"
  45. vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  46. alias tmsp="vi $usnp_dir/texmath.snippets"
  47. # }}} #