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

Advertising

Someone
Sunday, May 20th, 2007 at 3:44:28am UTC 

  1. ## .bashrc ##
  2. # ~/.bashrc: executed by bash(1) for non-login shells.
  3. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  4. # for examples
  5.  
  6. # If not running interactively, don't do anything
  7. [ -z "$PS1" ] && return
  8.  
  9. # don't put duplicate lines in the history. See bash(1) for more options
  10. export HISTCONTROL=ignoredups
  11. # ... and ignore same sucessive entries.
  12. export HISTCONTROL=ignoreboth
  13.  
  14. # check the window size after each command and, if necessary,
  15. # update the values of LINES and COLUMNS.
  16. shopt -s checkwinsize
  17.  
  18. # make less more friendly for non-text input files, see lesspipe(1)
  19. [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
  20.  
  21. # set variable identifying the chroot you work in (used in the prompt below)
  22. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  23.     debian_chroot=$(cat /etc/debian_chroot)
  24. fi
  25.  
  26. # set a fancy prompt (non-color, unless we know we "want" color)
  27. case "$TERM" in
  28. xterm-color)
  29.     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  30.     ;;
  31. *)
  32.     PS1='${debian_chroot:+($debian_chroot)}\[email protected]\h:\w\$ '
  33.     ;;
  34. esac
  35.  
  36. # Comment in the above and uncomment this below for a color prompt
  37. #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  38.  
  39. # If this is an xterm set the title to [email protected]:dir
  40. case "$TERM" in
  41. xterm*|rxvt*)
  42.     PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
  43.     ;;
  44. *)
  45.     ;;
  46. esac
  47.  
  48. # Alias definitions.
  49. # You may want to put all your additions into a separate file like
  50. # ~/.bash_aliases, instead of adding them here directly.
  51. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  52.  
  53. #if [ -f ~/.bash_aliases ]; then
  54. #    . ~/.bash_aliases
  55. #fi
  56.  
  57. # enable color support of ls and also add handy aliases
  58. if [ "$TERM" != "dumb" ]; then
  59.     eval "`dircolors -b`"
  60.     alias ls='ls --color=auto'
  61.     #alias dir='ls --color=auto --format=vertical'
  62.     #alias vdir='ls --color=auto --format=long'
  63. fi
  64.  
  65. # some more ls aliases
  66. #alias ll='ls -l'
  67. #alias la='ls -A'
  68. #alias l='ls -CF'
  69.  
  70. # enable programmable completion features (you don't need to enable
  71. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  72. # sources /etc/bash.bashrc).
  73. if [ -f /etc/bash_completion ]; then
  74.     . /etc/bash_completion
  75. fi
  76.  
  77.  
  78.  
  79. ## ERRORS ##
  80. : command not found
  81. : command not found
  82. : command not found
  83. : invalid shell option name
  84. : command not found
  85. : command not found
  86. : command not found
  87. 'ash: /home/captainmorgan/.bashrc: line 26: syntax error near unexpected token `in
  88. 'ash: /home/captainmorgan/.bashrc: line 26: `case "$TERM" in

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
worth-right