Only show pfetch and fortune at start of terminal session
This commit is contained in:
parent
322327936e
commit
bb9afe7a51
1 changed files with 10 additions and 7 deletions
|
@ -162,14 +162,17 @@ in
|
||||||
command rm -f -- "$tempfile" 2>/dev/null
|
command rm -f -- "$tempfile" 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
pfetch
|
if [ -z $TERMINAL_STARTED ] && [ -z $IN_NIX_SHELL ]; then
|
||||||
while true; do
|
pfetch
|
||||||
f=`fortune`
|
while true; do
|
||||||
if [ ''${#f} -lt 128 ]; then
|
f=`fortune`
|
||||||
echo "''${f}"
|
if [ ''${#f} -lt 128 ]; then
|
||||||
break
|
echo "''${f}"
|
||||||
fi
|
break
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
TERMINAL_STARTED=1
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue