sbaslof@ubuntu:~
![$ cat ~/.bashrc # ~/.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 case $ $ cat ~/.bashrc # ~/.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 case $](http://fx.ifz.ru/tex2.php?d=120&i=%24%20cat%20~%2F.bashrc%0A%23%20~%2F.bashrc%3A%20executed%20by%20bash%281%29%20for%20non-login%20shells.%0A%23%20see%20%2Fusr%2Fshare%2Fdoc%2Fbash%2Fexamples%2Fstartup-files%20%28in%20the%20package%20bash-doc%29%0A%23%20for%20examples%0A%0A%23%20If%20not%20running%20interactively%2C%20don%26%2339%3Bt%20do%20anything%0Acase%20%24)
- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# 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 "$ $(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$](http://fx.ifz.ru/tex2.php?d=120&i=%24%28SHELL%3D%2Fbin%2Fsh%20lesspipe%29%22%0A%0A%23%20set%20variable%20identifying%20the%20chroot%20you%20work%20in%20%28used%20in%20the%20prompt%20below%29%0Aif%20%5B%20-z%20%22%24)
{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 "$ $(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$](http://fx.ifz.ru/tex2.php?d=120&i=%24%28cat%20%2Fetc%2Fdebian_chroot%29%0Afi%0A%0A%23%20set%20a%20fancy%20prompt%20%28non-color%2C%20unless%20we%20know%20we%20%22want%22%20color%29%0Acase%20%22%24)
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
# should 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 would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if [ "$ $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 would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if [ "$](http://fx.ifz.ru/tex2.php?d=120&i=%24force_color_prompt%22%20%5D%3B%20then%0A%20if%20%5B%20-x%20%2Fusr%2Fbin%2Ftput%20%5D%20%26%26%20tput%20setaf%201%20%3E%26%2Fdev%2Fnull%3B%20then%0A%20%23%20We%20have%20color%20support%3B%20assume%20it%26%2339%3Bs%20compliant%20with%20Ecma-48%0A%20%23%20%28ISO%2FIEC-6429%29.%20%28Lack%20of%20such%20support%20is%20extremely%20rare%2C%20and%20such%0A%20%23%20a%20case%20would%20tend%20to%20support%20setf%20rather%20than%20setaf.%29%0A%20color_prompt%3Dyes%0A%20else%0A%20color_prompt%3D%0A%20fi%0Afi%0A%0Aif%20%5B%20%22%24)
color_prompt" = yes ]; then
PS1='
![${debian_chroot:+($ ${debian_chroot:+($](http://fx.ifz.ru/tex2.php?d=120&i=%24%7Bdebian_chroot%3A%2B%28%24)
debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\
![$ ' else PS1='$ $ ' else PS1='$](http://fx.ifz.ru/tex2.php?d=120&i=%24%20%26%2339%3B%0Aelse%0A%20PS1%3D%26%2339%3B%24)
{debian_chroot:+(
![$debian_chroot)}\u@\h:\w\$ $debian_chroot)}\u@\h:\w\$](http://fx.ifz.ru/tex2.php?d=120&i=%24debian_chroot%29%7D%5Cu%40%5Ch%3A%5Cw%5C%24)
'
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;$ $TERM" in xterm*|rxvt*) PS1="\[\e]0;$](http://fx.ifz.ru/tex2.php?d=120&i=%24TERM%22%20in%0Axterm%2A%7Crxvt%2A%29%0A%20PS1%3D%22%5C%5B%5Ce%5D0%3B%24)
{debian_chroot:+(
![$debian_chroot)}\u@\h: \w\a\]$ $debian_chroot)}\u@\h: \w\a\]$](http://fx.ifz.ru/tex2.php?d=120&i=%24debian_chroot%29%7D%5Cu%40%5Ch%3A%20%5Cw%5Ca%5C%5D%24)
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 ~/.dircolors)" || eval "$](http://fx.ifz.ru/tex2.php?d=120&i=%24%28dircolors%20-b%20~%2F.dircolors%29%22%20%7C%7C%20eval%20%22%24)
(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 -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "
![$([ $ $([ $](http://fx.ifz.ru/tex2.php?d=120&i=%24%28%5B%20%24)
? = 0 ] && echo terminal || echo error)" "
![$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$ $(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$](http://fx.ifz.ru/tex2.php?d=120&i=%24%28history%7Ctail%20-n1%7Csed%20-e%20%26%2339%3B%5C%26%2339%3B%26%2339%3Bs%2F%5E%5Cs%2A%5B0-9%5D%5C%2B%5Cs%2A%2F%2F%3Bs%2F%5B%3B%26%7C%5D%5Cs%2Aalert%24)
//'\'')"'
# 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 ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi