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.

50 lines
1.2 KiB

  1. alias_folder="~/linux-config/aliases"
  2. alias_type="school git pc laptop 209 my_pc"
  3. for type in $alias_type; do
  4. . ~/linux-config/aliases/."$type"_aliases
  5. done
  6. # system
  7. alias l='ls -a'
  8. alias ll='ls -alF'
  9. alias cs='printf "\033c"'
  10. shopt -s dotglob
  11. alias reb="sudo shutdown -r 0"
  12. alias sd="sudo shutdown 0"
  13. alias s="systemctl suspend"
  14. alias hst="history"
  15. alias topo="top -o %MEM"
  16. alias rmsw="rm .sw*"
  17. # directories
  18. # unalias c
  19. d() { cd "$@" && ls -a ; }
  20. cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
  21. alias "d."="cd_up"
  22. alias cdd="d ~/Downloads"
  23. # apps
  24. ok() { okular $1 ; }
  25. ## config
  26. alias lc="d ~/linux-config/"
  27. alias vv="vi ~/.vimrc"
  28. alias r=". ~/.bashrc"
  29. # aliases
  30. alias lca="d ~/linux-config/aliases"
  31. alias vb="vi $alias_folder/.bash_aliases"
  32. alias vs="vi $alias_folder/.school_aliases"
  33. alias vs9="vi $alias_folder/.209_aliases"
  34. # redshift
  35. rs(){ redshift -O $(($1 * 1000)) ; }
  36. alias rx="redshift -x"
  37. # UltiSnips
  38. alias dsnp="d ~/.vim/plugged/vim-snippets/UltiSnips/"
  39. alias csnp="d ~/.vim/UltiSnips/"
  40. alias vsptm="vi ~/.vim/UltiSnips/texmath.snippets"
  41. vdsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  42. vsnp() { vi ~/.vim/UltiSnips/"$1".snippets ; }