#~ /. Bashrc: executed by bash (1) for non-login shells.
# See/usr/share/doc/bash/examples/startup-files (in the package bash-Doc)
# For examples
# If not running interactively, don't do anything
If [[-n "$ PS1"]; then
# Don't put duplicate lines in the history. See bash (1) for more options
#... Or force ignoredups and ignorespace
Histcontrol = ignoredups: ignorespace
# Append to the history file, don't overwrite it
Shopt-s histappend
# For setting History Length see histsize and histfilesize in bash (1)
History Size = 1000
Histfilesize = 2000
# Check the window size after each command and, if necessary,
# Update the values of lines and columns.
Shopt-s checkwinsize
# Make less more friendly for non-text input files, see lesspipe (1)
[-X/usr/bin/lesspipe] & eval "$ (shell =/bin/sh lesspipe )"
# Set variable identifying the chroot you work in (used in the prompt below)
If [-z "$ debian_chroot"] & [-r/etc/debian_chroot]; then
Debian_chroot = $ (CAT/etc/debian_chroot)
Fi
# Set a fancy prompt (non-color, unless we know we "want" color)
Case "$ term" in
Xterm-color) color_prompt = yes ;;
Esac
# Uncomment for a colored prompt, if the terminal has the capability; turned
# Off by default to not distract the user: the focus in a terminal window
# Shocould be on the output of commands, not on the prompt
Force_color_prompt = Yes
If [-n "$ force_color_prompt"]; then
If [-x/usr/bin/tput] & tput setaf 1> &/dev/NULL; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (lack of such support is extremely rare, and such
# A Case wocould tend to support SETF rather than setaf .)
Color_prompt = Yes
Else
Color_prompt =
Fi
Fi
If ["$ color_prompt" = Yes]; then
PS1 = '$ {debian_chroot: + ($ debian_chroot)} \ [\ 033 [01; 31m \] \ U @ \ H \ [\ 033 [00m \]: \ [\ 033 [01; 34m \] \ W \ [\ 033 [00m \] \ $'
Else
PS1 = '$ {debian_chroot: + ($ debian_chroot)} \ U @ \ H: \ W \ $'
Fi
Unset color_prompt force_color_prompt
# If this is an xterm set the title to user @ host: Dir
Case "$ term" in
Xterm * | rxvt *)
PS1 = "\ [\ e] 0; $ {debian_chroot: + ($ debian_chroot)} \ U @ \ H: \ W \ A \] $ PS1"
;;
*)
;;
Esac
# Enable Color support of LS and also add handy aliases
If [-x/usr/bin/dircolors]; then
Test-R ~ /. Dircolors & eval "$ (dircolors-B ~ /. Dircolors) "| eval" $ (dircolors-B )"
Alias ls = 'ls -- color = auto'
# Alias dir = 'dir -- color = auto'
# Alias vdir = 'vdir -- color = auto'
Alias grep = 'grep -- color = auto'
Alias fgrep = 'fgrep -- color = auto'
Alias egrep = 'egrep -- color = auto'
Fi
# Some More ls aliases
Alias LL = 'LS-alf'
Alias LA = 'LS-'
Alias L = 'LS-CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
#~ /. Bash_aliases, instead of adding them here directly.
# See/usr/share/doc/bash-DOC/examples in the bash-Doc package.
If [-f ~ /. Bash_aliases]; then
.~ /. Bash_aliases
Fi
# Enable programmable completion features (you don't need to enable
# This, if it's already enabled in/etc/bash. bashrc and/etc/profile
# Sources/etc/bash. bashrc ).
# If [-F/etc/bash_completion] &! Shopt-oq posix; then
#./Etc/bash_completion
# Fi
Export histcontrol = ignoreboth
Fi
Export Path = $ path:/etc/alternatives/gem-bin