设定跳转用的快捷键
alias 2src='cd $XXXX'
alias 2out='cd $XXXX'
shell中使用颜色
#加入辅助用的函数和变量。
#辅助颜色
export txtgrn='\e[0;32m'
export txtrst='\e[0m'
#######################################
# echo_ok
function echo_ok
{
echo -e "${txtgrn}$@${txtrst}"
}
export -f echo_ok
function echo_err
{
echo -e "${txtred}$@${txtrst}"
}
export -f echo_err