瀏覽代碼

update my_ps1_scale for windows

pull/1/head
10sr 10 年之前
父節點
當前提交
b0b6c06dbb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc 查看文件

@@ -810,9 +810,10 @@ test -n "$SSH_CONNECTION" && __my_ps1_ssh_str="${__my_c5}SSH${__my_cdef} "

__my_ps1_scale(){
local last=$?
if null type stty && ! iswindows
if null type stty && ! ismsys
then
stty size | tr -d $'\n' | tr " " x
printf " "
fi
return $last
}


Loading…
取消
儲存