User:Mhs/.bashrc

From WPLUG
< User:Mhs
Revision as of 03:18, 11 December 2008 by Mhs (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions

PATH=$PATH:$HOME/scripts
export PATH


# Use the VI editor by default?

set -o vi



# Setup some conveniance aliases.

alias lla="ls -F -a -str -C -l -h"
alias ll="ls  -F    -str -C -l -h"
alias ls="ls -C"
alias vi="vim"



# Set the editor to vim, or vi if vim is not available.

if [ -e /usr/bin/vi ]; then
	export EDITOR='/usr/bin/vi'
fi
if [ -e /usr/bin/vim ]; then
	export EDITOR='/usr/bin/vim'
fi
if [ -e /usr/pkg/bin/vim ]; then
	export EDITOR='/usr/pkg/bin/vim'
fi


# Invoke keychain

if [ -e ~/.ssh/id_rsa ]; then
	keychain -q ~/.ssh/id_rsa 
	. ~/.keychain/$HOSTNAME-sh
fi 


# Setup CVS environment variables.

export CVS_RSH="ssh"
export CVSROOT=""


export  PS1='\[\033k\033\\\]\u@\h:\w \$     '