equal
deleted
inserted
replaced
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; }` |