Only show pfetch and fortune at start of terminal session

inky
Elnu 1 year ago
parent 322327936e
commit bb9afe7a51

@ -162,14 +162,17 @@ in
command rm -f -- "$tempfile" 2>/dev/null
}
pfetch
while true; do
f=`fortune`
if [ ''${#f} -lt 128 ]; then
echo "''${f}"
break
fi
if [ -z $TERMINAL_STARTED ] && [ -z $IN_NIX_SHELL ]; then
pfetch
while true; do
f=`fortune`
if [ ''${#f} -lt 128 ]; then
echo "''${f}"
break
fi
done
TERMINAL_STARTED=1
fi
'';
};
}

Loading…
Cancel
Save