From b0b6c06dbb6fdc5bca45ff0bd8f222226e2bf3a9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 10 Sep 2013 14:30:10 +0900 Subject: [PATCH] update my_ps1_scale for windows --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 7e51452..ce59997 100755 --- a/bashrc +++ b/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 }