3
# byobu-shell: display the MOTD and launch the default shell
4
# Copyright (C) 2008 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/.welcome-displayed"
27
# Find a MOTD, seems that they're moving around
28
for i in /etc/motd /run/motd.dynamic /run/motd; do
29
[ -r $i ] && [ ! -e "$HOME"/.hushlogin ] && cat $i && break
32
if [ ! -e "$FLAG" ]; then
34
echo "Welcome to the light, powerful, text window manager, Byobu."
35
echo "You can toggle the launch of Byobu at login with:"
36
echo " 'byobu-disable' and 'byobu-enable'"
38
echo "For tips, tricks, and more information, see:"
39
echo " * https://bit.ly/byobu-tips"
44
[ -n "$SHELL" -a -x "$SHELL" ] && exec "$SHELL" || exec /bin/sh
46
# vi: syntax=sh ts=4 noexpandtab