Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinkihaveacat committed Aug 19, 2017
1 parent 6e8559d commit df47763
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fish/functions/fish_prompt.fish
Expand Up @@ -28,8 +28,9 @@ function fish_prompt --description 'Write out the prompt'
end
end

# If commands takes longer than 10 seconds, notify user on completion
# https://github.com/jml/undistract-me/issues/32
# If commands takes longer than 10 seconds, notify user on completion if Terminal
# in background. (Otherwise e.g. reading man pages for longer than 10 seconds will
# trigger the notification.) Inspired by https://github.com/jml/undistract-me/issues/32.
if test $CMD_DURATION
if test $CMD_DURATION -gt (math "1000 * 10")
# tmp so that an empty tty-frontmost results in an empty string; see
Expand Down

0 comments on commit df47763

Please sign in to comment.