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 topo="top -o %MEM"
  19. alias rmsw="rm .sw*"
  20. alias nf="neofetch"
  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. # }}} #
  29. ok() { okular $1 ; }
  30. # Config {{{ #
  31. alias lc="d ~/linux-config/"
  32. alias vv="vi ~/.vimrc"
  33. alias r=". ~/.bashrc"
  34. # aliases
  35. alias lca="d ~/linux-config/aliases"
  36. alias vb="vi $alias_folder/.bash_aliases"
  37. alias vs="vi $alias_folder/.school_aliases"
  38. alias vag="vi $alias_folder/.git_aliases"
  39. alias vap="vi $alias_folder/.pc_aliases"
  40. alias v3="vi ~/.config/i3/config"
  41. alias v3b="vi ~/.config/i3blocks/i3blocks.conf"
  42. # }}} Config #
  43. # redshift
  44. rs(){ redshift -O $(($1 * 1000)) ; }
  45. alias rx="redshift -x"
  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. # }}} #