* byobu-status-detail: use vim's folding status feature to allow

for collapsing/expanding each status item; fall back on 
    sensible-pager if +folding is not available; and fall back on less
    if sensible-pager is not available


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-06 20:57:25 -05:00
commit e10a4f27a7

View file

@ -17,5 +17,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
byobu-status --detail | less -R -p "#.*:$"
if vim --version | grep -qs +folding 2>&1; then
byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -R -
elif which sensible-pager >/dev/null 2>&1; then
byobu-status --detail | sensible-pager
else
byobu-status --detail | less
fi