Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Unnamed
Monday, February 12th, 2007 at 4:07:03pm UTC 

  1. # System-wide .bashrc file for interactive bash(1) shells.
  2.  
  3. # To enable the settings / commands in this file for login shells as well,
  4. # this file has to be sourced in /etc/profile.
  5.  
  6. # If not running interactively, don't do anything
  7. [ -z "$PS1" ] && return
  8.  
  9. # check the window size after each command and, if necessary,
  10. # update the values of LINES and COLUMNS.
  11. shopt -s checkwinsize
  12.  
  13. # set variable identifying the chroot you work in (used in the prompt below)
  14. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  15.     debian_chroot=$(cat /etc/debian_chroot)
  16. fi
  17.  
  18. # set a fancy prompt (non-color, overwrite the one in /etc/profile)
  19. PS1='${debian_chroot:+($debian_chroot)}\[email protected]\h:\w\$ '
  20.  
  21. # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
  22. # If this is an xterm set the title to [email protected]:dir
  23. #case "$TERM" in
  24. #xterm*|rxvt*)
  25. #    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
  26. #    ;;
  27. #*)
  28. #    ;;
  29. #esac
  30.  
  31. # enable bash completion in interactive shells
  32. #if [ -f /etc/bash_completion ]; then
  33. #    . /etc/bash_completion
  34. #fi
  35.  
  36. # sudo hint
  37. if [ ! -e $HOME/.sudo_as_admin_successful ]; then
  38.     case " $(groups) " in *\ admin\ *)
  39.     if [ -x /usr/bin/sudo ]; then
  40.         cat <<-EOF
  41.         To run a command as administrator (user "root"), use "sudo <command>".
  42.         See "man sudo_root" for details.
  43.        
  44.         EOF
  45.     fi
  46.     esac
  47. fi
  48.  
  49. if the command-not-found package is installed, use it
  50. if [ -x /usr/bin/command-not-found ]; then
  51.         function command_not_found_handle {
  52.                 /usr/bin/command-not-found $1
  53.                 return $?

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right