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.

41 lines
1013 B

  1. alias_folder="~/linux-config/aliases"
  2. alias_type="school git pc laptop"
  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. # directories
  16. # unalias c
  17. d() { cd "$@" && ls -a ; }
  18. cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
  19. alias "c."="cd_up"
  20. alias cdd="d ~/Downloads"
  21. alias dsnip="d ~/.vim/plugged/vim-snippets/UltiSnips/"
  22. alias csnip="d ~/.vim/UltiSnips/"
  23. vdsnip() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
  24. vsnip() { vi ~/.vim/UltiSnips/"$1".snippets ; }
  25. # apps
  26. ok() { okular $1 ; }
  27. # config
  28. alias lc="d ~/linux-config/"
  29. alias lca="d ~/linux-config/aliases"
  30. alias vb="vi \"$alias_folder\"/.bash_aliases"
  31. alias vs="vi \"$alias_folder\"/.school_aliases"
  32. alias vv="vi ~/.vimrc"
  33. alias r=". ~/.bashrc"
  34. # redshift
  35. rs(){ redshift -O $(($1 * 1000)) ; }
  36. alias rx="redshift -x"