commit d88d0c446a57f239984cf30fbd0e51a0f81d900a
parent 1e4278b1f63a8b7bfce54da9c3cd3f60732a3fa5
Author: Daniel Moch <daniel@danielmoch.com>
Date: Fri, 22 May 2020 09:56:59 -0400
Remove MOTD handling
There's no sufficiently portable way to deal with this, and it's
unecessary
Diffstat:
3 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/.xsession b/.xsession
@@ -7,8 +7,6 @@ echo "Running $HOME/.xsession as PID $$" >&2
date +'%m/%d/%Y %H:%M:%S' >&2
env >&2
-SHLVL=0; export SHLVL
-
if [ $# -eq 0 ]
then
for wm in $wm dwm awesome i3 twm
diff --git a/bin/my b/bin/my
@@ -60,10 +60,9 @@ case $command in
exec my open -T https://duckduckgo.com/?q=$query
;;
term)
- SHLVL=0; export SHLVL
- if type st > /dev/null 2>&1
- then
- exec st "$@"
+ if type st > /dev/null 2>&1
+ then
+ exec st "$@"
elif type urxvtd > /dev/null 2>&1
then
urxvtc "$@"
diff --git a/etc/shrc.d/motd.sh b/etc/shrc.d/motd.sh
@@ -1,7 +0,0 @@
-if [ ! -f "$HOME/.hushlogin" ]
-then
- if [ -r /etc/motd -a -n "$DISPLAY" -a -z "$SSH_TTY" ]
- then
- [ $SHLVL -le 1 ] && cat /etc/motd
- fi
-fi