Commit 7cdcaca5 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix motd for tmux sessions

parent afb741b3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
#!/bin/sh
cat /etc/motd /run/motd.dynamic 2>/dev/null
if [ -r /run/motd.dynamic ]; then cat /run/motd.dynamic
elif [ -r /run/motd ]; then cat /run/motd
elif [ -r /etc/motd ]; then cat /etc/motd
fi
SHELL=${SHELL:-`getent passwd ${USER:-root} | cut -f7 -d:`}
exec "$SHELL" -l "$@"
+1 −1
Original line number Diff line number Diff line
new -d -s General -n Main '~/.tmux/motd-shell.sh'
new -d -s General -n Main '~/.shell/bin/motd-shell.sh'

# vim:ft=tmux
+1 −1
Original line number Diff line number Diff line
# "c": new window, with MotD
unbind c
bind c new-window '~/.tmux/motd-shell.sh'
bind c new-window '~/.shell/bin/motd-shell.sh'

# "S": new session with prompt and child-instance.conf settings
unbind S