Changeset ddb1335 in lab.git for TipAndDoc/.bashrc


Ignore:
Timestamp:
Mar 12, 2016 9:30:08 PM (9 years ago)
Author:
Ken-ichi Mito <mitty@…>
Branches:
master
Children:
a53ff5b
Parents:
214dd9d
Message:

update bashrc for Arch Linux

  • remove inactive functions
  • set git command completion file for bash
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TipAndDoc/.bashrc

    r29f6915b rddb1335  
    2727} 
    2828 
    29 if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git \ 
    30      -o -f $BASH_COMPLETION_COMPAT_DIR/git-prompt ]; then 
    31     export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ ' 
     29if [ -f /usr/share/git/completion/git-prompt.sh ]; then 
     30    source /usr/share/git/completion/git-prompt.sh 
     31    export PS1='\u@\h:\w$(__git_ps1)\$ ' 
    3232else 
    33     export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 
     33    export PS1='\u@\h:\w\$ ' 
    3434fi 
    35  
    36 if [ -d $HOME/bin -a `echo $PATH | grep -c $HOME/bin` -eq 0 ]; then 
    37     export PATH=$PATH:$HOME/bin 
    38 fi 
    39  
    40 function svnst { 
    41     svn st $@ | grep "^[^?]" 
    42 } 
    43  
    44 function hexcmp { 
    45     cmp -l "$@" | awk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}' 
    46 } 
    4735 
    4836alias vi='vim' 
Note: See TracChangeset for help on using the changeset viewer.