mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-status-detail
This commit is contained in:
parent
b7b29bb988
commit
ee5f407e67
2 changed files with 10 additions and 7 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue