Difference between revisions of "Profile"
From pressy's brainbackup
(Created page with "== profile == just a small copy & paste profile, always in progress... <pre> ##### pressy's profile ##### case ${SHELL} in *bash) typeset -x PS1='\[\e[31m\]\u\[\e[0m...") |
(→profile) |
||
| Line 11: | Line 11: | ||
esac | esac | ||
| − | ################ some settings | + | ################ some settings |
set -o vi | set -o vi | ||
| − | ################ proxy settings for headquarter. | + | ################ proxy settings for headquarter.blabla.at |
#http_proxy=http://proxy.blabla.at:3128 | #http_proxy=http://proxy.blabla.at:3128 | ||
#https_proxy=https://proxy.blalba.at:3128 | #https_proxy=https://proxy.blalba.at:3128 | ||
Revision as of 14:23, 12 January 2015
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
################ some settings
set -o vi
################ 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'
################ oh my shell
export HISTSIZE=2000
export HISTFILESIZE=2000
export HISTORY=2000
export HISTTIMEFORMAT="%F %T "
export HISTCONTROL=ignoredups
################ 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
################ bash bash bash
shopt -s cdspell
shopt -s extglob
shopt -s checkwinsize
shopt -s dirspell
################ Hardware Management Pack
export PATH=${PATH}:/opt/sun-ssm/bin
####################### EOF ########################