diff --git a/scripts/fish/prompt b/scripts/fish/prompt index 0177ef2..5db1f6a 100644 --- a/scripts/fish/prompt +++ b/scripts/fish/prompt @@ -13,12 +13,14 @@ function fish_right_prompt end function fish_greeting - set_color c50ed2 + if test -f /usr/share/dict/words && test (what shuf) + set_color c50ed2 - echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) | - awk -f $_agw_dir_scripts/text/mid.awk col=$COLUMNS + echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) | + awk -f $_agw_dir_scripts/text/mid.awk col=$COLUMNS - set_color normal + set_color normal + end end ## EOF