I showed you my source code, pls respond
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.

81 lines
1.8 KiB

  1. case $- in
  2. *i*) ;;
  3. *) return;;
  4. esac
  5. HISTCONTROL=ignoreboth
  6. shopt -s histappend
  7. HISTSIZE=1000
  8. HISTFILESIZE=2000
  9. shopt -s checkwinsize
  10. #shopt -s globstar
  11. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  12. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  13. debian_chroot=$(cat /etc/debian_chroot)
  14. fi
  15. case "$TERM" in
  16. xterm-color|*-256color) color_prompt=yes;;
  17. esac
  18. #force_color_prompt=yes
  19. if [ -n "$force_color_prompt" ]; then
  20. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  21. color_prompt=yes
  22. else
  23. color_prompt=
  24. fi
  25. fi
  26. if [ "$color_prompt" = yes ]; then
  27. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  28. else
  29. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  30. fi
  31. unset color_prompt force_color_prompt
  32. case "$TERM" in
  33. xterm*|rxvt*)
  34. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  35. ;;
  36. *)
  37. ;;
  38. esac
  39. if [ -x /usr/bin/dircolors ]; then
  40. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  41. alias ls='ls --color=auto'
  42. #alias dir='dir --color=auto'
  43. #alias vdir='vdir --color=auto'
  44. alias grep='grep --color=auto'
  45. alias fgrep='fgrep --color=auto'
  46. alias egrep='egrep --color=auto'
  47. fi
  48. #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
  49. alias ll='ls -alF'
  50. alias la='ls -A'
  51. alias l='ls -CF'
  52. alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  53. if [ -f ~/.bash_aliases ]; then
  54. . ~/.bash_aliases
  55. fi
  56. if ! shopt -oq posix; then
  57. if [ -f /usr/share/bash-completion/bash_completion ]; then
  58. . /usr/share/bash-completion/bash_completion
  59. elif [ -f /etc/bash_completion ]; then
  60. . /etc/bash_completion
  61. fi
  62. fi