diff --git a/bashrc b/bashrc index 5826119..4a9b428 100755 --- a/bashrc +++ b/bashrc @@ -48,7 +48,7 @@ export VISUAL="$EDITOR" export GIT_PAGER="$PAGER" export GIT_EDITOR="$EDITOR" -null type stty && { +! iswindows && null type stty && { stty stop undef # unbind C-s to stop displaying output # stty erase '^h' } @@ -63,6 +63,7 @@ fi ####################### +iswindows && alias tty="echo cmd.exe" uname -a echo TERM $TERM connected to $(tty), running $BASH $BASH_VERSION echo diff --git a/profile b/profile index f581fba..6039f9c 100755 --- a/profile +++ b/profile @@ -22,12 +22,11 @@ test -f "${HOME}/.pythonrc" && export PYTHONSTARTUP="${HOME}/.pythonrc" __add_to_path(){ for p in "$@" do - echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || PATH="$p:${PATH}" + echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || PATH="${PATH}:$p" done } # export PATH="${PATH}:${HOME}/bin" -__add_to_path ${HOME}/bin -#PATH="/c/mingw/bin/:$PATH:/c/mingw/msys/1.0/bin/" +__add_to_path ${HOME}/bin /c/mingw/bin /c/mingw/msys/1.0/bin type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 # in my environment powerdown does not work