Browse Source

fix

pull/1/head
10sr 12 years ago
parent
commit
77f823e7d5
1 changed files with 10 additions and 14 deletions
  1. +10
    -14
      bashrc

+ 10
- 14
bashrc View File

@@ -76,14 +76,16 @@ fi
#######################

uname -a
if test -f /etc/issue.net

if [ "${EMACS}" = "t" ]; then # for emacs shell
true export PS1="\u@\H \d \t \w\nemacs shell\$ "
elif echo "$EMACS" | grep term >/dev/null 2>&1; then # for emacs term
echo "Emacs Term"
fi

if test -f /etc/issue
then
cat /etc/issue.net
else
if test -f /etc/issue
then
cat /etc/issue
fi
cat /etc/issue
fi

###################################
@@ -128,7 +130,7 @@ alias arch-upgrade="yaourt -Syu"
alias port-upgrade="port selfupdate && port sync && port upgrade installed"

if iscygwin; then
! null type windate && alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'"
null type windate || alias windate="/c/Windows/System32/cmd.exe //c 'echo %DATE%-%TIME%'"
alias cygsu="cygstart /cygwinsetup.exe"
alias emacs="CYGWIN=tty emacs -nw"
alias ls="ls -CFG $(test "$TERM" == dumb || echo --color=auto)"
@@ -330,12 +332,6 @@ __my_prompt_function(){ # used by PS1
printf "shlv:${SHLVL} jobs:${jobnum} last:${lastreturn} "
}

if [ "${EMACS}" = "t" ]; then # for emacs shell
true export PS1="\u@\H \d \t \w\nemacs shell\$ "
elif echo "$EMACS" | grep term >/dev/null 2>&1; then # for emacs term
echo "emacs term"
fi

#Change ANSI Colors
_chengecolors(){
echo -e \


Loading…
Cancel
Save