00_superseed_debian.bash 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. HISTFILESIZE=2000000
  2. # If set, the pattern "**" used in a pathname expansion context will
  3. # match all files and zero or more directories and subdirectories.
  4. #shopt -s globstar
  5. # make less more friendly for non-text input files, see lesspipe(1)
  6. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  7. # uncomment for a colored prompt, if the terminal has the capability; turned
  8. # off by default to not distract the user: the focus in a terminal window
  9. # should be on the output of commands, not on the prompt
  10. force_color_prompt=yes
  11. if [ -n "$force_color_prompt" ]; then
  12. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  13. # We have color support; assume it's compliant with Ecma-48
  14. # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  15. # a case would tend to support setf rather than setaf.)
  16. color_prompt=yes
  17. else
  18. color_prompt=
  19. fi
  20. fi
  21. if [ "$color_prompt" = yes ]; then
  22. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  23. else
  24. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  25. fi
  26. unset color_prompt force_color_prompt
  27. # If this is an xterm set the title to user@host:dir
  28. case "$TERM" in
  29. xterm*|rxvt*)
  30. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  31. ;;
  32. *)
  33. ;;
  34. esac
  35. # enable color support of ls and also add handy aliases
  36. if [ -x /usr/bin/dircolors ]; then
  37. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  38. alias ls='ls --color=auto'
  39. alias dir='dir --color=auto'
  40. alias vdir='vdir --color=auto'
  41. alias grep='grep --color=auto'
  42. alias fgrep='fgrep --color=auto'
  43. alias egrep='egrep --color=auto'
  44. fi
  45. # some more ls aliases
  46. alias ll='ls -l'
  47. alias la='ls -A'
  48. alias l='ls -CF'