.dot files collection for FreeBSD host
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

55 lines
1.4 KiB

#=== some usefull aliases ===>
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls -FGh'
alias su='su -m'
if [ -f /usr/local/bin/vim ]; then
alias vi='vim'
fi
#=== shell options ===>
shopt -s cdspell
shopt -s cdable_vars
shopt -s checkhash
shopt -s checkwinsize
shopt -s sourcepath
shopt -s cmdhist
shopt -s histappend histreedit histverify
shopt -s extglob
#=== less options ===>
LESS="-R"; export LESS
#LESS="-FR"; export LESS
#=== seting up the command history ===>
HISTFILE="${HOME}/.history"; export HISTFILE
HISTCONTROL="ignoredups,erasedups"; export HISTCONTROL
HISTIGNORE="&:[bf]g:ls*:cd"; export HISTIGNORE
HISTSIZE=500; export HISTSIZE
HISTFILESIZE=500; export HISTFILESIZE
PROMPT_COMMAND='history -a'; export PROMPT_COMMAND
#=== color term ===>
#if [ -n "$COLORTERM" ]; then
# TERM=xterm-256color; export TERM
#fi
#if [ "$TERM" = "xterm" ]; then
# TERM=xterm-256color; export TERM
#fi
#=== color definitions ===>
if [ -f $HOME/.colors ]; then
source $HOME/.colors
fi
#=== seting up the shell prompt ===>
PS1="${purple}╓───${darkgray}( ${cyan}\w${darkgray} )\n${purple}╙─[ "
case `id -u` in
0) PS1="${PS1}${red}\u${brown}@${red}`hostname`";;
*) PS1="${PS1}${green}\u${brown}@${green}`hostname`";;
esac
PS1="${PS1}${purple} ]${nc}\\$ "
export PS1