.bashrc
changeset 1006 ad4478dd89fc
parent 1004 c7b2842e3f39
child 1010 1616bc25541c
equal deleted inserted replaced
1005:2b1061d35183 1006:ad4478dd89fc
     9 
     9 
    10 shopt -s checkwinsize
    10 shopt -s checkwinsize
    11 shopt -s promptvars
    11 shopt -s promptvars
    12 
    12 
    13 _my_ruler_handler() {
    13 _my_ruler_handler() {
       
    14   # To avoid a warning when HG is operating via  SSH:
       
    15   #   remote: tput: No value for $TERM and no -T specified
       
    16   if [[ -z "$TERM" ]]; then
       
    17     return
       
    18   fi
    14   local ruler='================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================'
    19   local ruler='================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================'
    15   if [[ -x /usr/bin/tput ]]; then
    20   if [[ -x /usr/bin/tput ]]; then
    16     local size=`/usr/bin/tput cols`
    21     local size=`/usr/bin/tput cols`
    17   elif [[ -x /bin/stty ]]; then
    22   elif [[ -x /bin/stty ]]; then
    18     local size=`/bin/stty size | { read x y; echo $y; }`
    23     local size=`/bin/stty size | { read x y; echo $y; }`