Difference between revisions of "User:Mhs/.bashrc"

From WPLUG
Jump to: navigation, search
(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 ...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
[[Category:.bashrc]]
 
  # .bashrc
 
  # .bashrc
 
   
 
   
Line 10: Line 11:
 
  PATH=$PATH:$HOME/scripts
 
  PATH=$PATH:$HOME/scripts
 
  export PATH
 
  export PATH
 
 
# Set the prompt to look like:
 
# semcheskim currentdir $
 
 
PS1='\u@\h:\w \$ '
 
 
 
   
 
   
 
   
 
   

Latest revision as of 04:29, 11 December 2008

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