瀏覽代碼

fix to work on windows

pull/1/head
10sr 12 年之前
父節點
當前提交
e204f033a5
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +2
    -1
      bashrc
  2. +2
    -3
      profile

+ 2
- 1
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


+ 2
- 3
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


Loading…
取消
儲存