system.var

  1. #!/bin/sh
  2.  
  3. # ESC Parameter
  4. normal="\033[m"
  5. red="\033[01;31m"
  6. green="\033[1;32m"
  7. yellow="\033[1;33m"
  8. blue="\033[1;34m"
  9. cyan="\033[1;36m"
  10. white="\033[1;37m"
  11.  
  12. FAILED="\033[80C\033[11D${red} -= shit =-${normal}"
  13. DONE="\033[80C\033[11D${blue} -=  OK  =-${normal}"
  14. ISRUNNING="\033[80C\033[20D${yellow} -=  is running!  =-${normal}"
  15. ISTERMINATED="\033[80C\033[20D${blue} -= is terminated =-${normal}"
  16. NOTHINGTODO="\033[80C\033[17D${yellow}-= is modified =-${normal}"
  17. ISINSTALLED="\033[80C\033[17D${blue}-=  installed  =-${normal}"
  18.  
  19. LS_OPTION="-G "  
  20. export LSCOLORS="gxfxcxdxbxegedabagacad"
  21. export LANG="de_DE.UTF-8"
  22. export MM_CHARSET="UTF-8"
  23. #export LANG="de_DE.ISO8859-15"
  24. #export MM_CHARSET="ISO-8859-15"
  25. export PATH="${PATH}:/opt/bin"
  26.  
  27. alias ls="/bin/ls -CF ${LS_OPTION}"
  28. alias dir="ls ${LS_OPTION}"
  29. alias ll="ls -l ${LS_OPTION}"
  30. alias l="less"
  31. alias ..="cd .."
  32. alias .="pwd"
  33. alias md="mkdir"
  34. alias rd="rmdir"
  35. alias cls="clear"
  36. alias mj="mjail"
  37. alias lock="/opt/bin/sperren"
  38. alias b="/usr/sbin/acpiconf -i batt"
  39. alias k="clear; /usr/bin/lock -vpn"
  40. alias d="date"
  41.  
  42. if [ -e "/usr/local/bin/vile" ]; then
  43.   alias vi="vile"
  44. fi
  45.  
  46. if [ -e /usr/local/bin/src-hilite-lesspipe.sh ]; then
  47.   alias less="less -M -x4 -r"
  48.   alias more="more -x4 -r"
  49.   alias cat="/usr/local/bin/src-hilite-lesspipe.sh"
  50.   export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
  51.   tabs -4
  52. fi
  53.  
  54. ###alias top="/usr/bin/top -iSd 02.00"
  55.  
  56. if [ "${TERM}" != 'dumb'  ] && [ -n "${BASH}" ]; then
  57.   export PS1="\[\e[00;33m\]\A\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[00;31m\]\u\[\e[0m\]\[\e[00;37m\]@\[\e[0m\]\[\e[00;32m\]\h\[\e[0m\]\[\e[00;37m\] [\[\e[0m\]\[\e[00;36m\]\w\[\e[0m\]\[\e[00;37m\]] {\#:\$?}\\$ \[\e[0m\]"
  58. fi
  59.  
  60. #if [ "${UID}" = "0" ]; then
  61. #  if [ "${TERM}" != 'dumb'  ] && [ -n "${BASH}" ]; then
  62. #    export PS1="\[${red}\]God Mode \[${cyan}\]\w \
  63. #\[${green}\]\!:\# \[${cyan}\]\$ \[${normal}\]"
  64. #  fi
  65. #else
  66. #  if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]; then
  67. #    export PS1="\[${red}\]\u\[${cyan}\]@\[${red}\]\h \
  68. #\[${cyan}\]\w \[${green}\]\!:\# \[${cyan}\]\$ \[${normal}\]"
  69. #  fi
  70. #fi