Skip to content

Commit

Permalink
updating terminal bell article
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchassassin authored Dec 16, 2024
1 parent 9a37ce6 commit 29fcb63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _posts/2024-12-16-terminal-bell-long-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Visual Studio Code (or Cursor) can play an audible cue from a terminal BELL char
Then, in my `.zshrc`, I've added a couple zsh hooks that tracks when a command is started, and sends a bell when it's finished, if it took longer than 1 second:

```zsh
autoload -Uz add-zsh-hook

function notify_long_running_commands() {
local stop=$SECONDS
local elapsed=$(( stop - start ))
Expand Down

0 comments on commit 29fcb63

Please sign in to comment.