Difference between revisions of "Profile"
From pressy's brainbackup
(→profile) |
(→profile) |
||
| Line 11: | Line 11: | ||
esac | esac | ||
| − | |||
| − | |||
################ proxy settings for headquarter.blabla.at | ################ proxy settings for headquarter.blabla.at | ||
#http_proxy=http://proxy.blabla.at:3128 | #http_proxy=http://proxy.blabla.at:3128 | ||
| Line 24: | Line 22: | ||
alias dc='cd' | alias dc='cd' | ||
alias grep='ggrep --color=auto' | alias grep='ggrep --color=auto' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
################ do not close man pages | ################ do not close man pages | ||
export PAGER="less -insX" | export PAGER="less -insX" | ||
| Line 52: | Line 44: | ||
echo -en "\e]PFdedede" #white | echo -en "\e]PFdedede" #white | ||
fi | fi | ||
| + | typeset -x PS1='\[\e[31m\]\u\[\e[0m\]@\[\e[33m\]\h:\w\[\e[0m\]# ' | ||
################ bash bash bash | ################ bash bash bash | ||
| + | # minor errors in spelling of a directory correction: | ||
shopt -s cdspell | shopt -s cdspell | ||
| + | # spelling correction during word completion | ||
| + | shopt -s dirspell | ||
| + | # extended pattern matching | ||
shopt -s extglob | shopt -s extglob | ||
| + | # checks the window size after each command | ||
shopt -s checkwinsize | shopt -s checkwinsize | ||
| − | shopt -s | + | # save all lines of multipleline command in the same history entry |
| − | ################ | + | shopt -s cmdhist |
| − | export PATH=${PATH}:/opt/ | + | ################ 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 ######################## | ####################### EOF ######################## | ||
| + | |||
</pre> | </pre> | ||
Revision as of 13:02, 29 August 2016
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\]# '
################ 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 ########################