3
# byobu-quiet - disable the hardstatus and all indicators
4
# Copyright (C) 2011 Canonical Ltd.
6
# Authors: Dustin Kirkland <kirkland@byobu.org>
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, version 3 of the License.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21
[ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc"
22
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX
23
. "${BYOBU_PREFIX}/lib/${PKG}/include/common"
25
FLAG="$BYOBU_CONFIG_DIR/status.disable"
27
# Clean up environment
28
$BYOBU_SED_INLINE "/hardstatus/d" "$BYOBU_CONFIG_DIR/keybindings" || true
29
if [ "$1" = "--undo" ]; then
33
# BUG: Need to make this dynamic and following
34
status="$USER@$(hostname)"
35
echo "hardstatus lastline '$status'" >> "$BYOBU_CONFIG_DIR/keybindings"
37
$BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile"
39
# vi: syntax=sh ts=4 noexpandtab