mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
do not display how much is left
This commit is contained in:
parent
d24e66918e
commit
c923906df9
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ short_fortune() {
|
|||
local prompt_variable_part=$'%n%m%~%D{"$PROMPT_DATE_FORMAT"}'
|
||||
if hash fortune 2>/dev/null; then
|
||||
local left=$(( $COLUMNS - ${#${(%)prompt_variable_part}} - 15))
|
||||
echo -ne $left
|
||||
#echo -ne $left
|
||||
fortune -s -n $left | tr -s "\n\t " " "
|
||||
else
|
||||
echo "no fortunes for you"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue