Instead of waiting for long commands to finish one can easily get notifications when they are complete. The following procdure shows how to set his in fish shell.
Requirements: fish shell, notify-send, xdotool
- Add a new file
vi ~/.config/fish/functions/noti.fish
with the content below:
function fish_right_prompt
if test $CMD_DURATION
# Check if terminal window is hidden