common/home/bashrc

44 lines
1.0 KiB
Bash
Executable File

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias diff='diff --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
alias ubisunt='grep . -rnw -e'
ps1_reset()
{
local FRONT='['
local USERNAME='\[\e[01;32m\]\u'
local AT='\[\e[0m\]@'
local LOCALHOST='\[\e[38;5;149m\]\h'
local DIRECTORY='\[\e[38;5;105m\]\w'
local BACK='\[\e[00m\]]\[\e[1m\]\$\[\e[00m\]'
export PS1="${FRONT}${USERNAME}${AT}${LOCALHOST} ${DIRECTORY}${BACK} "
}
ps1_reset
#PS1='[\[\e[01;32m\]\u\[\e[0m\]@\[\e[38;5;63m\]\h \[\e[38;5;105m\]\w\[\e[00m\]]\[\e[1m\]\$\[\e[00m\] '
PS2='\[\e[1m\]>> \[\e[00m\]'
alias test-command='echo test-'
export VISUAL=vim
export EDITOR="$VISUAL"