Browse Source

fortune

pull/1/head
10sr 12 years ago
parent
commit
3fe141f444
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      bashrc

+ 10
- 0
bashrc View File

@@ -62,6 +62,15 @@ fi


uname -a uname -a


null type fortune && {
echo
fortune
echo
fortune -o
echo
}


if [ "${EMACS}" = "t" ]; then # for emacs shell if [ "${EMACS}" = "t" ]; then # for emacs shell
true export PS1="\u@\H \d \t \w\nemacs shell\$ " true export PS1="\u@\H \d \t \w\nemacs shell\$ "
elif echo "$EMACS" | grep term >/dev/null 2>&1; then # for emacs term elif echo "$EMACS" | grep term >/dev/null 2>&1; then # for emacs term
@@ -401,6 +410,7 @@ ip-address(){
} }


__my_prompt_function(){ # used by PS1 __my_prompt_function(){ # used by PS1
# remove __try_exec from function
local lastreturn=$? local lastreturn=$?
if test "${TERM}" == dumb if test "${TERM}" == dumb
then then


Loading…
Cancel
Save