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.

55 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 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. alias nf="neofetch"
  20. # }}} System #
  21. # Directories {{{ #
  22. # unalias c
  23. d() { cd "$@" && ls -a ; }
  24. cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
  25. alias "d."="cd_up"
  26. alias dd="d ~/Downloads"
  27. # }}} #
  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 vag="vi $alias_folder/.git_aliases"
  38. alias vap="vi $alias_folder/.pc_aliases"
  39. alias v3="vi ~/.config/i3/config"
  40. # }}} Config #
  41. # redshift
  42. rs(){ redshift -O $(($1 * 1000)) ; }
  43. alias rx="redshift -x"
  44. # UltiSnips {{{ #
  45. usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
  46. alias snp="d $usnp_dir"
  47. vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  48. alias tm="vi $usnp_dir/texmath.snippets"
  49. # }}} #