Bladeren bron

refactoring system type command

pull/1/head
10sr 12 jaren geleden
bovenliggende
commit
331e67ff2e
1 gewijzigde bestanden met toevoegingen van 5 en 21 verwijderingen
  1. +5
    -21
      bashrc

+ 5
- 21
bashrc Bestand weergeven

@@ -9,26 +9,11 @@ alias isdarwin=false
alias iswindows="iscygwin || ismsys"
alias islinux="! iswindows && ! isdarwin" # i havent used unix yet

if uname | grep -E "^MINGW32" >/dev/null 2>&1
then
alias ismsys=true
else
alias ismsys=false
fi

if uname | grep -E "^CYGWIN" >/dev/null 2>&1
then
alias iscygwin=true
else
alias iscygwin=false
fi

if uname | grep -E 'Darwin' >/dev/null 2>&1
then
alias isdarwin=true
else
alias isdarwin=false
fi
case `uname` in
(MINGW32*) alias ismsys=true ;;
(CYGWIN*) alias iscygwin=true ;;
(Darwin*) alias isdarwin=true ;;
esac

##########################################
null(){
@@ -327,7 +312,6 @@ __my_prompt_function(){ # used by PS1
fi
local svn=$(type svn >/dev/null 2>&1 && __try_exec __my_svn_ps1 [SVN:%s])
printf " [${c1}${pwd}${cdef}<${c3}${oldpwd}${cdef}]${git}${svn}\n"
jobs
printf "${c2}${USER}@${HOSTNAME}${cdef} ${date} ${BASH} ${BASH_VERSION}\n"
printf "shlv:${SHLVL} jobs:${jobnum} last:${lastreturn} "
}


Laden…
Annuleren
Opslaan