Advertisement
Dr_FarFar

[-] ~/.bashrc ( uBuntu OS )

Jul 4th, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.57 KB | None | 0 0
  1. /***
  2. ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
  3. ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
  4. ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌
  5. ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
  6. ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌
  7. ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
  8. ▐░▌ ▐░▌▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀█░█▀▀
  9. ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
  10. ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▄ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
  11. ▐░░░░░░░░░░▌ ▐░▌ ▐░▌▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
  12. ▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀
  13.  
  14.  
  15.  
  16. ~~~ :xD: Have Fun. Don't Forget To Bookmark This Website :xD:
  17. ~~~ https://www.FaceBook.com/Dr.FarFar
  18. ~~~ http://Dr-FarFar.BlogSpot.com/
  19.  
  20. */
  21.  
  22. ########################################################################################################################
  23.  
  24. # ~/.bashrc: executed by bash(1) for non-login shells.
  25. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  26. # for examples
  27.  
  28. # If not running interactively, don't do anything
  29. case $- in
  30. *i*) ;;
  31. *) return;;
  32. esac
  33.  
  34. # don't put duplicate lines or lines starting with space in the history.
  35. # See bash(1) for more options
  36. HISTCONTROL=ignoreboth
  37.  
  38. # append to the history file, don't overwrite it
  39. shopt -s histappend
  40.  
  41. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  42. HISTSIZE=1000
  43. HISTFILESIZE=2000
  44.  
  45. # check the window size after each command and, if necessary,
  46. # update the values of LINES and COLUMNS.
  47. shopt -s checkwinsize
  48.  
  49. # If set, the pattern "**" used in a pathname expansion context will
  50. # match all files and zero or more directories and subdirectories.
  51. #shopt -s globstar
  52.  
  53. # make less more friendly for non-text input files, see lesspipe(1)
  54. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  55.  
  56. # set variable identifying the chroot you work in (used in the prompt below)
  57. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  58. debian_chroot=$(cat /etc/debian_chroot)
  59. fi
  60.  
  61. # set a fancy prompt (non-color, unless we know we "want" color)
  62. case "$TERM" in
  63. xterm-color|*-256color) color_prompt=yes;;
  64. esac
  65.  
  66. # uncomment for a colored prompt, if the terminal has the capability; turned
  67. # off by default to not distract the user: the focus in a terminal window
  68. # should be on the output of commands, not on the prompt
  69. #force_color_prompt=yes
  70.  
  71. if [ -n "$force_color_prompt" ]; then
  72. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  73. # We have color support; assume it's compliant with Ecma-48
  74. # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  75. # a case would tend to support setf rather than setaf.)
  76. color_prompt=yes
  77. else
  78. color_prompt=
  79. fi
  80. fi
  81.  
  82. if [ "$color_prompt" = yes ]; then
  83. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  84. else
  85. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  86. fi
  87. unset color_prompt force_color_prompt
  88.  
  89. # If this is an xterm set the title to user@host:dir
  90. case "$TERM" in
  91. xterm*|rxvt*)
  92. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  93. ;;
  94. *)
  95. ;;
  96. esac
  97.  
  98. # enable color support of ls and also add handy aliases
  99. if [ -x /usr/bin/dircolors ]; then
  100. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  101. alias ls='ls --color=auto'
  102. #alias dir='dir --color=auto'
  103. #alias vdir='vdir --color=auto'
  104.  
  105. alias grep='grep --color=auto'
  106. alias fgrep='fgrep --color=auto'
  107. alias egrep='egrep --color=auto'
  108. fi
  109.  
  110. # colored GCC warnings and errors
  111. #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
  112.  
  113. # some more ls aliases
  114. alias ll='ls -alF'
  115. alias la='ls -A'
  116. alias l='ls -CF'
  117.  
  118. # Add an "alert" alias for long running commands. Use like so:
  119. # sleep 10; alert
  120. 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$//'\'')"'
  121.  
  122. # Alias definitions.
  123. # You may want to put all your additions into a separate file like
  124. # ~/.bash_aliases, instead of adding them here directly.
  125. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  126.  
  127. if [ -f ~/.bash_aliases ]; then
  128. . ~/.bash_aliases
  129. fi
  130.  
  131. # enable programmable completion features (you don't need to enable
  132. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  133. # sources /etc/bash.bashrc).
  134. if ! shopt -oq posix; then
  135. if [ -f /usr/share/bash-completion/bash_completion ]; then
  136. . /usr/share/bash-completion/bash_completion
  137. elif [ -f /etc/bash_completion ]; then
  138. . /etc/bash_completion
  139. fi
  140. fi
  141.  
  142. ########################################################################################################################
  143.  
  144. https://www.facebook.com/Dr.FarFar
  145. http://Dr-FarFar.BlogSpot.com/
  146.  
  147. ________ __________ __________
  148. ___ __ \___________ ____/______ ____________ ____/______ _________
  149. __ / / /__ ___/__ /_ _ __ `/__ ___/__ /_ _ __ `/__ ___/
  150. _ /_/ / _ /___ _ __/ / /_/ / _ / _ __/ / /_/ / _ /
  151. /_____/ /_/ _(_)/_/ \__,_/ /_/ /_/ \__,_/ /_/
  152.  
  153. ~\ Dr.FarFar /~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement