Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. # File: /etc/bash.bashrc
  2.  
  3. # System-wide .bashrc file for interactive bash(1) shells.
  4.  
  5. # To enable the settings / commands in this file for login shells as well,
  6. # this file has to be sourced in /etc/profile.
  7.  
  8. # If not running interactively, don't do anything
  9. if [[ -z "$PS1" ]]; then
  10.  
  11. # check the window size after each command and, if necessary,
  12. # update the values of LINES and COLUMNS.
  13. shopt -s checkwinsize
  14.  
  15. # set variable identifying the chroot you work in (used in the prompt below)
  16. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  17. debian_chroot=$(cat /etc/debian_chroot)
  18. fi
  19.  
  20. # set a fancy prompt (non-color, overwrite the one in /etc/profile)
  21. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  22.  
  23. # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
  24. # If this is an xterm set the title to user@host:dir
  25. #case "$TERM" in
  26. #xterm*|rxvt*)
  27. # PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
  28. # ;;
  29. #*)
  30. # ;;
  31. #esac
  32.  
  33. # enable bash completion in interactive shells
  34. #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
  35. # . /etc/bash_completion
  36. #fi
  37.  
  38. # sudo hint
  39. if [ ! -e "$HOME/.sudo_as_admin_successful" ]; then
  40. case " $(groups) " in *\ admin\ *)
  41. if [ -x /usr/bin/sudo ]; then
  42. cat <<-EOF
  43. To run a command as administrator (user "root"), use "sudo <command>".
  44. See "man sudo_root" for details.
  45.  
  46. EOF
  47. fi
  48. esac
  49. fi
  50.  
  51. # if the command-not-found package is installed, use it
  52. if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
  53. function command_not_found_handle {
  54. # check because c-n-f could've been removed in the meantime
  55. if [ -x /usr/lib/command-not-found ]; then
  56. /usr/bin/python /usr/lib/command-not-found -- $1
  57. return $?
  58. elif [ -x /usr/share/command-not-found ]; then
  59. /usr/bin/python /usr/share/command-not-found -- $1
  60. return $?
  61. else
  62. return 127
  63. fi
  64. }
  65. fi
  66. fi
  67.  
  68. set -o vi
  69.  
  70. # Load up RVM environment
  71. [[ -s "/usr/local/lib/rvm" ]] && source "/usr/local/lib/rvm"
Add Comment
Please, Sign In to add comment