# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
#===================================================================
# 更新当前的java版本
# sudo update-alternatives --config java
#===================================================================
#java 程序开发/运行的一些环境变量
#JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
JAVA_HOME=/usr/lib/jvm/java-6-sun
JRE_HOME=${JAVA_HOME}/jre
export ANDROID_JAVA_HOME=$JAVA_HOME
export CLASSPATH=.:${JAVA_HOME}/lib:$JRE_HOME/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export JAVA_HOME;
export JRE_HOME;
export CLASSPATH;
HOME_BIN=~/bin/
export PATH=${PATH}:${JAVA_PATH}:${JRE_PATH}:${HOME_BIN};
#echo $PATH;
#===================================================================#
# MTK_Android_2.3模拟器运行时的环境变量_normal
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/software/alps/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/software/alps/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# MTK_Android_2.3模拟器运行时的环境变量_LOCAL
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/mtk_android/alps/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/mtk_android/alps/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# MTK_Android_2.3模拟器运行时的环境变量_cc_SERVER
#===================================================================#
#export ANDROID_PRODUCT_OUT=~/xiongmc_mtk/vobtags/L13_ANDROID_MTK_110916/alps/out/target/product/flyfot73_gb
#ANDROID_PRODUCT_OUT_BIN=~/xiongmc_mtk/vobtags/L13_ANDROID_MTK_110916/alps/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# Leadcore_Android_2.2模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=~/xiongmc_635h/vobtags/L11_ANDROID_LEADCORE_110623/android-2.2/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=~/xiongmc_635h/vobtags/L11_ANDROID_LEADCORE_110623/android-2.2/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# Q7610_Android_2.2模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# 官网Android_2.3模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/android/android2.3/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/android/android2.3/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# 高通Android_2.2模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=~/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=~/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# 官网Android_4.0模拟器运行时的环境变量
#===================================================================#
export ANDROID_PRODUCT_OUT=/home/xiongmc/android/android4.0/out/target/product/generic
ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/android/android4.0/out/host/linux-x86/bin
export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# Android_4.0 for MTK 模拟器运行时的环境变量
#===================================================================#
export ANDROID_PRODUCT_OUT=/home/xiongmc/android/android_for_MTK_6575_ICS_4.0/alps/out/target/product/generic
ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/android/android_for_MTK_6575_ICS_4.0/alps/out/host/linux-x86/bin
export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#added by xiongmc 2011-9-23
ANDROID_NDK=/home/xiongmc/software/ndk/android-ndk-r6b
export PATH=${PATH}:${ANDROID_NDK};
#添加交叉编译工具。
ARM=/home/xiongmc/arm-eabi-4.4.3/bin
export PATH=${PATH}:${ARM};
#rdesktop for XP下远程桌面。
#alias rdp1='rdesktop 10.8.20.6 -u administrator -p 123456 -a 16 -g 1265x728 -r sound:local -5 '
alias rdp1='rdesktop 10.8.20.6 -u jialei -p jia123 -f -a 16 -r sound:local -5'
alias rdp2='rdesktop 10.8.8.6 -u koull -p kou123 -f -a 16 -r sound:local -5'
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
#===================================================================
# 更新当前的java版本
# sudo update-alternatives --config java
#===================================================================
#java 程序开发/运行的一些环境变量
#JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
JAVA_HOME=/usr/lib/jvm/java-6-sun
JRE_HOME=${JAVA_HOME}/jre
export ANDROID_JAVA_HOME=$JAVA_HOME
export CLASSPATH=.:${JAVA_HOME}/lib:$JRE_HOME/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export JAVA_HOME;
export JRE_HOME;
export CLASSPATH;
HOME_BIN=~/bin/
export PATH=${PATH}:${JAVA_PATH}:${JRE_PATH}:${HOME_BIN};
#echo $PATH;
#===================================================================#
# MTK_Android_2.3模拟器运行时的环境变量_normal
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/software/alps/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/software/alps/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# MTK_Android_2.3模拟器运行时的环境变量_LOCAL
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/mtk_android/alps/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/mtk_android/alps/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# MTK_Android_2.3模拟器运行时的环境变量_cc_SERVER
#===================================================================#
#export ANDROID_PRODUCT_OUT=~/xiongmc_mtk/vobtags/L13_ANDROID_MTK_110916/alps/out/target/product/flyfot73_gb
#ANDROID_PRODUCT_OUT_BIN=~/xiongmc_mtk/vobtags/L13_ANDROID_MTK_110916/alps/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# Leadcore_Android_2.2模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=~/xiongmc_635h/vobtags/L11_ANDROID_LEADCORE_110623/android-2.2/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=~/xiongmc_635h/vobtags/L11_ANDROID_LEADCORE_110623/android-2.2/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# Q7610_Android_2.2模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# 官网Android_2.3模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=/home/xiongmc/android/android2.3/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/android/android2.3/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# 高通Android_2.2模拟器运行时的环境变量
#===================================================================#
#export ANDROID_PRODUCT_OUT=~/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/target/product/generic
#ANDROID_PRODUCT_OUT_BIN=~/xiongmc_q7610/vobtags/L03_ANDROID_QUALCOMM_APP_110126/android-2.2_app/out/host/linux-x86/bin
#export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# 官网Android_4.0模拟器运行时的环境变量
#===================================================================#
export ANDROID_PRODUCT_OUT=/home/xiongmc/android/android4.0/out/target/product/generic
ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/android/android4.0/out/host/linux-x86/bin
export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#===================================================================#
# Android_4.0 for MTK 模拟器运行时的环境变量
#===================================================================#
export ANDROID_PRODUCT_OUT=/home/xiongmc/android/android_for_MTK_6575_ICS_4.0/alps/out/target/product/generic
ANDROID_PRODUCT_OUT_BIN=/home/xiongmc/android/android_for_MTK_6575_ICS_4.0/alps/out/host/linux-x86/bin
export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN};
#added by xiongmc 2011-9-23
ANDROID_NDK=/home/xiongmc/software/ndk/android-ndk-r6b
export PATH=${PATH}:${ANDROID_NDK};
#添加交叉编译工具。
ARM=/home/xiongmc/arm-eabi-4.4.3/bin
export PATH=${PATH}:${ARM};
#rdesktop for XP下远程桌面。
#alias rdp1='rdesktop 10.8.20.6 -u administrator -p 123456 -a 16 -g 1265x728 -r sound:local -5 '
alias rdp1='rdesktop 10.8.20.6 -u jialei -p jia123 -f -a 16 -r sound:local -5'
alias rdp2='rdesktop 10.8.8.6 -u koull -p kou123 -f -a 16 -r sound:local -5'