A command line tool to give notifications on finish for long running commands.
Use this command line tool to receive a notification when the command finishes. Set up a specific notification for when a command fails vs. succeeds. Choose to receive notifications if the command took more than a certain amount of time to run or less than another amount of time to run.
Run the following in your terminal
curl -s https://raw.githubusercontent.com/quinton22/nfin/main/bin/internal/install | bash
This will install the latest version of nfin, as well as set up nfin to run on every command in the terminal. You can disable this feature in the config.
Development is still in progress, but for now:
Set up the config.json file in the ~/.nfin directory. You can:
- Run
nfin -c settings
for an interactive setup - Run
nfin -c <setting.separated.by.dots> <setting_value>
to set an individual setting value **
There are multiple ways to use nFin:
Currently only supported for zsh
This is the default, any time a command is run in the terminal, if it takes longer than the configured amount of time, you will get a notification.
There are multiple ways to run nFin on the command line.
-
Run your command preceded by
nfin
nfin COMMAND
Example
Sleeps for 15 seconds, a notification will appear afterwards.nfin sleep 15
-
If you have multiple commands separated by
;
, place your commands in quotesnfin "COMMAND_1[; COMMAND_2[; ...]]"
Example
Sleeps for 15 seconds, then runs `ls`, and a notification will appear afterwards.nfin "sleep 15; ls"
Do the same if you have multiple commands separated by
&&
or||
nfin "COMMAND_1 [{&& | ||} COMMAND_2[{&& | ||} ...]]"
Example
Sleeps for 15 seconds, then runs `ls`, and a notification will appear afterwards.nfin "sleep 15 && echo 'yay' || echo 'uh-oh'"
-
Run your command followed by
; nfin
COMMANDS; nfin
Example
pwd; nfin
By running this way, nfin will notify every time.
-
Run specific configuration **
The configuration is type defined in config.type.json
** Still under development