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.

59 lines
1.4 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. alias vlm="alsamixer -c 1"
  22. # }}} System #
  23. # Directories {{{ #
  24. # unalias c
  25. d() { cd "$@" && ls -a ; }
  26. cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
  27. alias "d."="cd_up"
  28. alias dd="d ~/Downloads"
  29. alias cfg="d ~/.config"
  30. # }}} #
  31. ok() { okular $1 ; }
  32. # Config {{{ #
  33. alias lc="d ~/linux-config/"
  34. alias vv="vi ~/.vimrc"
  35. alias r=". ~/.bashrc"
  36. # aliases
  37. alias lca="d ~/linux-config/aliases"
  38. alias vb="vi $alias_folder/.bash_aliases"
  39. alias vs="vi $alias_folder/.school_aliases"
  40. alias vag="vi $alias_folder/.git_aliases"
  41. alias vap="vi $alias_folder/.pc_aliases"
  42. alias v3="vi ~/.config/i3/config"
  43. alias v3b="vi ~/.config/i3blocks/i3blocks.conf"
  44. # }}} Config #
  45. # redshift
  46. rs(){ redshift -O $(($1 * 1000)) ; }
  47. alias rx="redshift -x"
  48. # UltiSnips {{{ #
  49. usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
  50. alias snp="d $usnp_dir"
  51. vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  52. alias tm="vi $usnp_dir/texmath.snippets"
  53. # }}} #