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.

38 lines
914B

  1. # General Aliases
  2. alias apk='apk --progress'
  3. alias ll="ls -ltan"
  4. alias hosts='cat /etc/hosts'
  5. alias ..="cd .."
  6. alias ...="cd ../.."
  7. alias ....="cd ../../.."
  8. alias untar="tar xzvkf"
  9. alias mv="mv -nv"
  10. alias cp="cp -i"
  11. alias ip4="ip -4 addr"
  12. alias ip6="ip -6 addr"
  13. COL_YEL="\[\e[1;33m\]"
  14. COL_GRA="\[\e[0;37m\]"
  15. COL_WHI="\[\e[1;37m\]"
  16. COL_GRE="\[\e[1;32m\]"
  17. COL_RED="\[\e[1;31m\]"
  18. # Bash Prompt
  19. if test "$UID" -eq 0 ; then
  20. _COL_USER=$COL_RED
  21. _p=" #"
  22. else
  23. _COL_USER=$COL_GRE
  24. _p=">"
  25. fi
  26. COLORIZED_PROMPT="${_COL_USER}\u${COL_WHI}@${COL_YEL}\h${COL_WHI}:\w${_p} \[\e[m\]"
  27. case $TERM in
  28. *term | rxvt | screen )
  29. PS1="${COLORIZED_PROMPT}\[\e]0;\[email protected]\h:\w\007\]" ;;
  30. linux )
  31. PS1="${COLORIZED_PROMPT}" ;;
  32. * )
  33. PS1="\[email protected]\h:\w${_p} " ;;
  34. esac