.bashrc 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # /etc/skel/.bashrc
  2. #
  3. # This file is sourced by all *interactive* bash shells on startup,
  4. # including some apparently interactive shells such as scp and rcp
  5. # that can't tolerate any output. So make sure this doesn't display
  6. # anything or bad things will happen !
  7. # Test for an interactive shell. There is no need to set anything
  8. # past this point for scp and rcp, and it's important to refrain from
  9. # outputting anything in those cases.
  10. if [[ $- != *i* ]] ; then
  11. # Shell is non-interactive. Be done now!
  12. return
  13. fi
  14. # exports
  15. export GPG_TTY=$(tty)
  16. # draw flag
  17. # echo -e "\e[1;39;43m \e[0m"
  18. # echo -e "\e[1;34;107m ⬤ \e[0m"
  19. # echo -e "\e[1;39;102m \e[0m"
  20. # Put your fun stuff here.
  21. # auto cd
  22. shopt -s autocd
  23. # autocompletion for doas
  24. complete -cf doas
  25. # alias
  26. alias ls='ls -hF --color=auto'
  27. alias la='ls -AhF --color=auto'
  28. alias ll='ls -lhF1 --color=auto'
  29. alias lla='ls -AlhF1 --color=auto'
  30. alias ..='cd ..'
  31. alias cp='cp -ri'
  32. alias mv='mv -i'
  33. alias rm='rm -ri'
  34. alias vi='vi -p'