Profile

From pressy's brainbackup
Jump to: navigation, search

profile

just a small copy & paste profile, always in progress...

##### pressy's profile #####
case ${SHELL} in
*bash)
        typeset -x PS1='\[\e[31m\]\u\[\e[0m\]@\[\e[32m\]\h:\w\[\e[0m\]# '
    ;;
esac

################ proxy settings for headquarter.blabla.at
#http_proxy=http://proxy.blabla.at:3128
#https_proxy=https://proxy.blalba.at:3128
#export http_proxy https_proxy
################ some aliases
alias sl='ls'
alias ls='ls --color=auto'
alias cd..='cd ..'
alias cd...='cd ../..'
alias dc='cd'
alias grep='ggrep --color=auto'
################ do not close man pages
export PAGER="less -insX"
################ need colors
export TERM=xterm-color
if [ "$TERM" = "xterm-color" ]; then
    echo -en "\e]P0222222" #black
    echo -en "\e]P8222222" #darkgrey
    echo -en "\e]P1803232" #darkred
    echo -en "\e]P9982b2b" #red
    echo -en "\e]P25b762f" #darkgreen
    echo -en "\e]PA89b83f" #green
    echo -en "\e]P3aa9943" #brown
    echo -en "\e]PBefef60" #yellow
    echo -en "\e]P4324c80" #darkblue
    echo -en "\e]PC2b4f98" #blue
    echo -en "\e]P5706c9a" #darkmagenta
    echo -en "\e]PD826ab1" #magenta
    echo -en "\e]P692b19e" #darkcyan
    echo -en "\e]PEa1cdcd" #cyan
    echo -en "\e]P7ffffff" #lightgrey
    echo -en "\e]PFdedede" #white
fi
        typeset -x PS1='\[\e[31m\]\u\[\e[0m\]@\[\e[33m\]\h:\w\[\e[0m\]# '
################ colors in man pages
export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;4;31m'
################ bash bash bash
# minor errors in spelling of a directory correction:
shopt -s cdspell
# spelling correction during word completion
shopt -s dirspell
# extended pattern matching
shopt -s extglob
# checks the window size after each command
shopt -s checkwinsize
#  save all lines of  multipleline command in the same history entry
shopt -s cmdhist
################ oh my shell vs. history
export HISTSIZE=20000
export HISTFILESIZE=20000
export HISTORY=20000
export HISTTIMEFORMAT="%F %T "
# ignore dupblicates if they are in a row:
export HISTCONTROL=ignoredups
# append history entries
shopt -s histappend
# after command, save and reload history
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
################ VI as CLI editor:
set -o vi
################ solaris studio
#PATH=${PATH}:/opt/solarisstudio12.4/bin
#export PATH
####################### EOF ########################