Don't display fortune over 128 characters
This commit is contained in:
parent
5ce8aa8641
commit
b39da5b24d
1 changed files with 10 additions and 1 deletions
|
@ -100,6 +100,15 @@ in
|
|||
# config.allowUnfree seems to not apply to nix-env, so is provided explicitly
|
||||
latest = "NIXPKGS_ALLOW_UNFREE=1 nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -iA";
|
||||
};
|
||||
bashrcExtra = "pfetch\nfortune";
|
||||
bashrcExtra = ''
|
||||
pfetch
|
||||
while true; do
|
||||
f=`fortune`
|
||||
if [ ''${#f} -lt 128 ]; then
|
||||
echo "''${f}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue