# base-files version 3.7-1
# To pick up the latest recommended .bashrc content,
# look in /etc/defaults/etc/skel/.bashrc
# Modifying /etc/skel/.bashrc directly will prevent
# setup from updating it.
# The copy in your home directory (~/.bashrc) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benificial to all, please feel free to send
# a patch to the cygwin mailing list.
# User dependent .bashrc file
# Shell Options
# #############
# See man bash for more options...
# Don't wait for job termination notification
# set -o notify
# Don't use ^D to exit
# set -o ignoreeof
# Use case-insensitive filename globbing
# shopt -s nocaseglob
# Make bash append rather than overwrite the history on disk
# shopt -s histappend
# When changing directory small typos can be ignored by bash
# for example, cd /vr/lgo/apaache would find /var/log/apache
# shopt -s cdspell
# Completion options
# ##################
# These completion tuning parameters change the default behavior of bash_completion:
# Define to access remotely checked-out files over passwordless ssh for CVS
# COMP_CVS_REMOTE=1
# Define to avoid stripping description in --option=description of './configure --help'
# COMP_CONFIGURE_HINTS=1
# Define to avoid flattening internal contents of tar files
# COMP_TAR_INTERNAL_PATHS=1
# If this shell is interactive, turn on programmable completion enhancements.
# Any completions you add in ~/.bash_completion are sourced last.
case $- in
*i*) [[ -f /etc/bash_completion ]] && . /etc/bash_completion ;;
esac
# History Options
# ###############
# Don't put duplicate lines in the history.
# export HISTCONTROL="ignoredups"
# Ignore some controlling instructions
# export HISTIGNORE="[ ]*:&:bg:fg:exit"
# Whenever displaying the prompt, write the previous line to disk
# export PROMPT_COMMAND="history -a"
# Aliases
# #######
# Some example alias instructions
# If these are enabled they will be used instead of any instructions
# they may mask. For example, alias rm='rm -i' will mask the rm
# application. To override the alias instruction use a \ before, ie
# \rm will call the real rm not the alias.
# Interactive operation...
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
# Default to human readable figures
# alias df='df -h'
# alias du='du -h'
# Misc :)
# alias less='less -r' # raw control characters
# alias whence='type -a' # where, of a sort
# alias grep='grep --color' # show differences in colour
~/bin/herastats.sh
# Some shortcuts for different directory listings
alias ls='ls -hF --color=tty' # classify files in colour
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
alias ll='ls -l' # long list
alias la='ls -A' # all but . and ..
alias l='ls -CF' #
# Functions
# #########
# Some example functions
# function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; }
#export DISPLAY=:0.0
export PS1="\w $ "
alias h=history
alias startx='startx -- -clipboard'
alias kdiff='svn diff --diff-cmd /cygdrive/c/Program\ Files/KDiff3/kdiff3.exe'
alias bdiff='svn diff --diff-cmd bc.sh'
alias sediff='svn diff --diff-cmd ediff.sh'
#alias psb='PowerStrip.exe /C8'
#alias load='tload_m6v2.exe /oemm6dev /c2576WH,RBF7WX,JHK8KN,MWRTF4,7WM32K,CHINOOKTEST 4 /b460800 /R_8_1'
#alias load4='tload.exe /oemm6dev /cX35X7C,NDHDMB,BN9ZPJ,WMGF2W,M74P99,ME4 4 /b460800 /R_8_1'
#alias load3='tload.exe /oemm6dev /cX35X7C,NDHDMB,BN9ZPJ,WMGF2W,M74P99,ME4 3 /b460800 /R_8_1'
#alias load4='tload.exe /oemm6dev /cP5P3M6,K846JC,HK9Z5R,HZTW79,KJWK4W,ME4 4 /b921600 /R_8_1'
#alias load3='tload.exe /oemm6dev /cP5P3M6,K846JC,HK9Z5R,HZTW79,KJWK4W,ME4 3 /b921600 /R_8_1'
alias emacs='/cygdrive/c/tools/emacs-23.2/bin/runemacs.exe'
alias buildtags4='find . c:/tools/GHS/arm424a/ansi/ -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.hpp' -o -name '*.arm' -name '*.ghs' -o -name '*.s' |xargs etags --extra=+q --fields=+fksaiS --c++-kinds=+px --append'
alias buildtags='find . c:/tools/GHS/arm506/ansi/ c:/tools/GHS/int1002 -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.hpp' -o -name '*.arm' -name '*.ghs' -o -name '*.s' |xargs etags --extra=+q --fields=+fksaiS --c++-kinds=+px --append'
alias ports='grep 3389 /cygdrive/c/WINDOWS/system32/LogFiles/PortReporter/*'
alias bittwist='~/packages/bittwist-1.0/bin/bittwist.exe'
alias bittwiste='~/packages/bittwist-1.0/bin/bittwiste.exe'
alias backup='rsync -av --exclude "vmware" /cygdrive/g/ /cygdrive/c/backup/'
alias wholockme='/cygdrive/c/Program\ Files/WhoLockMe/WhoLockMe.exe'
alias dbser='cpterm.exe /c5 /b115200 /echo:off'
alias hexdump=' od -t x1 -w16' # followed by file name
alias winzip='/cygdrive/c/Program\ Files/WinZip/WINZIP32.EXE -min'
alias sigclient='pkill -SIGUSR1 nclient'
alias sigserver='pkill -SIGUSR1 nserver'
alias flashdns='ipconfig /flushdns'
alias tshark='/cygdrive/c/Program\ Files/Wireshark/tshark.exe'
alias dumpcap='/cygdrive/c/Program\ Files/Wireshark/dumpcap.exe'
alias msbuild='/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Msbuild.exe'
alias nconvert='/cygdrive/o/Algorithms/Utils/nconvert-m6.exe'
alias ps=procps
alias setarp='arp -s 10.4.44.179 00-21-66-00-05-80'
#dumpcap -i 3 -w dump.pcap -b filesize:100000 -B50 -f tcp
#tshark -b duration:60 -B 100 -i 3 -q -w test.pcap
#net stop dnscache
#cd iMXr4n; svn export . ../../../winzip/ethernet_again_32bit
#cd ../../../winzip/;winzip -a -r -p ../for_ed/ethernet_again_receivingC.zip ethernet_again_receivingC
#svn diff --summarize -r 84:98
# svn propedit svn:ignore .
# svn propset svn:ignore '*.exe' .
ediff() {
emacs --eval "(ediff-files \"$1\" \"$2\")"
}
emerge() {
# dest src base; then cx-cw to overwrite the file in $1
emacs --eval "(ediff-merge-files-with-ancestor \"$1\" \"$2\" \"$3\")"
}
emerge_file() {
# filename destdir srcdir basedir; then cx-cw to overwrite the file in $1
# emerge_file src ../pri/src ../../../builds/1.3.0.0.14/src radio/generic.hpp
emacs --eval "(ediff-merge-files-with-ancestor \"$1/$4\" \"$2/$4\" \"$3/$4\")"
}
bashrc
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment