usr/bin/byobu-status-detail

This commit is contained in:
Dustin Kirkland 2010-06-24 09:28:57 -05:00
commit ee5f407e67
2 changed files with 10 additions and 7 deletions

1
debian/changelog vendored
View file

@ -5,6 +5,7 @@ byobu (2.81) unreleased; urgency=low
* usr/lib/byobu/custom * usr/lib/byobu/custom
* usr/lib/byobu/release * usr/lib/byobu/release
* usr/lib/services * usr/lib/services
* usr/bin/byobu-status-detail
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help * usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
text, per feedback from Turnkey Linux users text, per feedback from Turnkey Linux users

View file

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