Home Simple Terminal process alert
Post
Cancel

Simple Terminal process alert

For people who are working with terminal all the time, you runs pipeline and tasks and you don’t know whethere it’s finished or not. This small trick will alert you.

#step1: install espeak
$sudo apt-get install espeak

#step2: try 
espeak "Hello World"

#step3: create several alias to reuse for different alert messages
#success process
alias sp='espeak "process finished successfully"'
#fail process
alias fp='espeak "process failed"'

#example usage

 #!/bin/bash
 if [ "foo" = "foo" ]; then
    echo expression evaluated as true
    sp
 else
    echo expression evaluated as false
    fp
 fi

 
This post is licensed under CC BY 4.0 by the author.

Personal UX of Ubuntu OS

Reply to > "Core Difference between Firefox's and Chrome's private browsing mode"