User:Mhs/.bashrc: Difference between revisions
< User:Mhs
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:.bashrc]] |
|||
# .bashrc |
# .bashrc |
||
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 \$ '