Guest User

Untitled

a guest
Feb 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. # If not running interactively, don't do anything
  2. case $- in
  3. *i*) ;;
  4. *) return;;
  5. esac
  6.  
  7. # don't put duplicate lines or lines starting with space in the history.
  8. # See bash(1) for more options
  9. HISTCONTROL=ignoreboth
  10.  
  11. # append to the history file, don't overwrite it
  12. shopt -s histappend
  13.  
  14. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  15. HISTSIZE=1000
  16. HISTFILESIZE=2000
  17.  
  18. # check the window size after each command and, if necessary,
  19. # update the values of LINES and COLUMNS.
  20. shopt -s checkwinsize
  21.  
  22. # make less more friendly for non-text input files, see lesspipe(1)
  23. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  24.  
  25. # set variable identifying the chroot you work in (used in the prompt below)
  26. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  27. debian_chroot=$(cat /etc/debian_chroot)
  28. fi
  29.  
  30. # set a fancy prompt (non-color, unless we know we "want" color)
  31. case "$TERM" in
  32. xterm-color|*-256color) color_prompt=yes;;
  33. esac
  34.  
  35. if [ -n "$force_color_prompt" ]; then
  36. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  37. color_prompt=yes
  38. else
  39. color_prompt=
  40. fi
  41. fi
  42.  
  43. if [ "$color_prompt" = yes ]; then
  44. PS1="\[\033[0;36m\]\w \[\033[0;31m\]\$\[\033[0m\] "
  45. else
  46. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  47. fi
  48. unset color_prompt force_color_prompt
  49.  
  50. # If this is an xterm set the title to user@host:dir
  51. case "$TERM" in
  52. xterm*|rxvt*)
  53. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  54. ;;
  55. *)
  56. ;;
  57. esac
  58.  
  59. # enable color support of ls and also add handy aliases
  60. if [ -x /usr/bin/dircolors ]; then
  61. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  62. alias ls='ls --color=auto'
  63. #alias dir='dir --color=auto'
  64. #alias vdir='vdir --color=auto'
  65.  
  66. alias grep='grep --color=auto'
  67. alias fgrep='fgrep --color=auto'
  68. alias egrep='egrep --color=auto'
  69. fi
  70.  
  71. # colored GCC warnings and errors
  72. #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
  73.  
  74. # some more ls aliases
  75. alias ll='ls -alF'
  76. alias la='ls -A'
  77. alias l='ls -CF'
  78.  
  79. # Add an "alert" alias for long running commands. Use like so:
  80. # sleep 10; alert
  81. 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$//'\'')"'
  82.  
  83. if [ -f ~/.bash_aliases ]; then
  84. . ~/.bash_aliases
  85. fi
  86.  
  87. # enable programmable completion features (you don't need to enable
  88. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  89. # sources /etc/bash.bashrc).
  90. if ! shopt -oq posix; then
  91. if [ -f /usr/share/bash-completion/bash_completion ]; then
  92. . /usr/share/bash-completion/bash_completion
  93. elif [ -f /etc/bash_completion ]; then
  94. . /etc/bash_completion
  95. fi
  96. fi
  97. if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then source /etc/profile.d/vte.sh; fi # Ubuntu Budgie END
Add Comment
Please, Sign In to add comment