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.

45 lines
1.1 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. alias dsnp="d ~/.vim/plugged/vim-snippets/UltiSnips/"
  24. alias csnp="d ~/.vim/UltiSnips/"
  25. vdsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  26. vsnp() { vi ~/.vim/UltiSnips/"$1".snippets ; }
  27. # apps
  28. ok() { okular $1 ; }
  29. ## config
  30. alias lc="d ~/linux-config/"
  31. alias vv="vi ~/.vimrc"
  32. alias r=". ~/.bashrc"
  33. # aliases
  34. alias lca="d ~/linux-config/aliases"
  35. alias vb="vi $alias_folder/.bash_aliases"
  36. alias vs="vi $alias_folder/.school_aliases"
  37. alias vs9="vi $alias_folder/.209_aliases"
  38. # redshift
  39. rs(){ redshift -O $(($1 * 1000)) ; }
  40. alias rx="redshift -x"