Skip to content

Commit

Permalink
beep function. for notifying after a long running command. works over…
Browse files Browse the repository at this point in the history
… ssh
  • Loading branch information
paulirish committed Aug 10, 2023
1 parent a809794 commit 8509a1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ log() {
xargs -I % sh -c 'git show --color=always % | less -R'"
}

#make two beeps
beep() {
echo -e '\a'; sleep 0.1; echo -e '\a';
}


# Start an HTTP server from a directory, optionally specifying the port
Expand Down
4 changes: 4 additions & 0 deletions fish/functions.fish
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ function notif --description "make a macos notification that the prev command is
-- "$history[1]"
end

function beep --description "make two beeps"
echo -e '\a'; sleep 0.1; echo -e '\a';
end

function all_binaries_in_path --description "list all binaries available in \$PATH, even if theres conflicts"
# based on https://unix.stackexchange.com/a/120790/110766 but tweaked to work on mac. and then made it faster.
find -L $PATH -maxdepth 1 -perm +111 -type f
Expand Down

0 comments on commit 8509a1e

Please sign in to comment.