mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 10:46:58 -07:00
* usr/bin/byobu-select-backend, usr/bin/Makefile.am,
usr/share/man/man1/byobu-select-backend.1, usr/share/man/man1/Makefile.am: - add a utility to select default byobu backend (screen or tmux)
This commit is contained in:
parent
d2ed912057
commit
ae1309be1a
5 changed files with 93 additions and 2 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -4,6 +4,10 @@ byobu (4.45) unreleased; urgency=low
|
|||
- shift-F11 -> breaks pane out to its own window
|
||||
* usr/lib/byobu/.constants:
|
||||
- comment out utf8 characters that don't look very good
|
||||
* usr/bin/byobu-select-backend, usr/bin/Makefile.am,
|
||||
usr/share/man/man1/byobu-select-backend.1,
|
||||
usr/share/man/man1/Makefile.am:
|
||||
- add a utility to select default byobu backend (screen or tmux)
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 26 Oct 2011 10:05:01 -0500
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
bin_SCRIPTS = byobu byobu-config byobu-ctrl-a byobu-disable byobu-enable byobu-export byobu-janitor byobu-launch byobu-launcher byobu-launcher-install byobu-launcher-uninstall byobu-quiet byobu-reconnect-sockets byobu-select-profile byobu-select-session byobu-silent byobu-status byobu-status-detail byobu-shell
|
||||
bin_SCRIPTS = byobu byobu-config byobu-ctrl-a byobu-disable byobu-enable byobu-export byobu-janitor byobu-launch byobu-launcher byobu-launcher-install byobu-launcher-uninstall byobu-quiet byobu-reconnect-sockets byobu-select-backend byobu-select-profile byobu-select-session byobu-silent byobu-status byobu-status-detail byobu-shell
|
||||
|
||||
install-exec-hook:
|
||||
cd $(DESTDIR)$(bindir) && $(LN_S) byobu byobu-screen
|
||||
|
|
62
usr/bin/byobu-select-backend
Executable file
62
usr/bin/byobu-select-backend
Executable file
|
@ -0,0 +1,62 @@
|
|||
#!/bin/sh -e
|
||||
#
|
||||
# byobu-select-backend
|
||||
# Copyright (C) 2011 Dustin Kirkland
|
||||
#
|
||||
# Authors: Dustin Kirkland <kirkland@ubuntu.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, version 3 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
PKG="byobu"
|
||||
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX
|
||||
. "${BYOBU_PREFIX}/lib/${PKG}/.common"
|
||||
|
||||
usage () {
|
||||
cat <<EOT
|
||||
Usage: $0 [screen|tmux]
|
||||
|
||||
Without any parameters, it runs interactively.
|
||||
EOT
|
||||
exit 1
|
||||
}
|
||||
|
||||
prompt() {
|
||||
local choice
|
||||
echo
|
||||
echo "Select the byobu backend:"
|
||||
echo " 1. screen"
|
||||
echo " 2. tmux"
|
||||
echo
|
||||
echo -n "Choose 1-2 [2]: "
|
||||
choice=$(head -n1)
|
||||
case $choice in
|
||||
1) _RET="screen" ;;
|
||||
2|"") _RET="tmux" ;;
|
||||
*) prompt ;;
|
||||
esac
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"")
|
||||
prompt
|
||||
choice="$_RET"
|
||||
;;
|
||||
screen|tmux)
|
||||
choice="$1"
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
echo "BYOBU_BACKEND=$choice" > "$BYOBU_CONFIG_DIR/backend"
|
|
@ -1 +1 @@
|
|||
man_MANS = byobu.1 byobu-config.1 byobu-ctrl-a.1 byobu-disable.1 byobu-enable.1 byobu-export.1 byobu-janitor.1 byobu-launch.1 byobu-launcher.1 byobu-launcher-install.1 byobu-launcher-uninstall.1 byobu-quiet.1 byobu-reconnect-sockets.1 byobu-screen.1 byobu-select-profile.1 byobu-select-session.1 byobu-shell.1 byobu-silent.1 byobu-status.1 byobu-status-detail.1 byobu-tmux.1
|
||||
man_MANS = byobu.1 byobu-config.1 byobu-ctrl-a.1 byobu-disable.1 byobu-enable.1 byobu-export.1 byobu-janitor.1 byobu-launch.1 byobu-launcher.1 byobu-launcher-install.1 byobu-launcher-uninstall.1 byobu-quiet.1 byobu-reconnect-sockets.1 byobu-screen.1 byobu-select-backend.1 byobu-select-profile.1 byobu-select-session.1 byobu-shell.1 byobu-silent.1 byobu-status.1 byobu-status-detail.1 byobu-tmux.1
|
||||
|
|
25
usr/share/man/man1/byobu-select-backend.1
Normal file
25
usr/share/man/man1/byobu-select-backend.1
Normal file
|
@ -0,0 +1,25 @@
|
|||
.TH byobu\-select\-backend 1 "30 Oct 2011" byobu "byobu"
|
||||
.SH NAME
|
||||
byobu\-select\-backend \- select your default Byobu backend window manager
|
||||
|
||||
.SH SYNOPSIS
|
||||
byobu\-select\-backend [screen|tmux]
|
||||
|
||||
.SH DESCRIPTION
|
||||
\fBbyobu\-select\-backend\fP is an application that lists the available Byobu backends and allows you to select your default.
|
||||
|
||||
You can select one of either \fBscreen\fP(1) or \fBtmux\fP(1) on the command line, or giving no command line parameters, the utility will run interactively.
|
||||
|
||||
.SH "SEE ALSO"
|
||||
.PD 0
|
||||
.TP
|
||||
\fBbyobu\fP(1), \fBscreen\fP(1), \fBtmux\fP(1)
|
||||
|
||||
.TP
|
||||
\fIhttp://launchpad.net/byobu\fP
|
||||
.PD
|
||||
|
||||
.SH AUTHOR
|
||||
This manpage and the utility were written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document and the utility under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
|
||||
|
||||
The complete text of the GNU General Public License can be found in \fI/usr/share/common-licenses/GPL\fP on Debian/Ubuntu systems, or in \fI/usr/share/doc/fedora-release-*/GPL\fP on Fedora systems, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP.
|
Loading…
Add table
Add a link
Reference in a new issue