User:Mhs/.bashrc

From WPLUG
< User:Mhs
Revision as of 02:53, 11 December 2008 by Mhs (talk | contribs) (New page: # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions PATH=$PATH:$HOME/scripts export PATH # Set the ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
# .bashrc

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

# User specific aliases and functions

PATH=$PATH:$HOME/scripts
export PATH


# Set the prompt to look like:
# semcheskim currentdir $ 

PS1='\u@\h:\w \$ '



# 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 \$     '