common/home/bashrc

46 lines
1.1 KiB
Bash
Raw Normal View History

2021-01-02 23:30:57 -08:00
#
# ~/.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\]'
2021-01-16 13:26:52 -08:00
alias test-command='echo test-'
2021-01-02 23:30:57 -08:00
export VISUAL=vim
export EDITOR="$VISUAL"
PATH="$HOME/.emacs.d/bin:$PATH"