User:Mhs/.bashrc: Difference between revisions
< User:Mhs
Jump to navigation
Jump to 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 ...) |
No edit summary |
||
Line 10: | Line 10: | ||
PATH=$PATH:$HOME/scripts |
PATH=$PATH:$HOME/scripts |
||
export PATH |
export PATH |
||
# Set the prompt to look like: |
|||
# semcheskim currentdir $ |
|||
PS1='\u@\h:\w \$ ' |
|||
Revision as of 03:18, 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 \$ '