Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (34 sloc) 908 Bytes
# Source a file if it exists
source_if_exists() {
for f in $* ; do
[[ -f $f ]] && . $f
done
}
source_if_exists /home/engshare/admin/scripts/master.bashrc
# Enable vi keybindings
set -o vi
# Set up the terminal
stty erase 
stty sane
shopt -s checkwinsize
# Set up some aliases
alias v='vim'
alias l='less -r'
alias ls='ls --color=auto -F'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias bc='bc -l ~/.bcrc'
PATH="${HOME}/bin:${HOME}/bin/overrides:/opt/local/bin:/opt/local/libexec/gnubin:${PATH}:/sbin:/usr/sbin:/opt/local/sbin:${HOME}/src/depot_tools"
MANPATH="$MANPATH:/opt/local/man:/opt/local/share/man"
EDITOR=vim
VISUAL=$EDITOR
PAGER="less -r"
LESSHISTFILE="-"
INPUTRC="~/.inputrc"
PM_CMD=${HOME}/bin/i386/passwordmaker
PROMPT_DIRTRIM=2
PS1='\[\e[1m\]\h:\[\e[0m\]\w$ '
export EDITOR VISUAL PAGER LESSHISTFILE PM_CMD
source_if_exists ~/.bashrc-local
# vim:ts=4 sw=4 et