jml / undistract-me

Notifies you when long-running terminal commands complete
Other
540 stars 48 forks source link

fish support #32

Open tomleo opened 9 years ago

tomleo commented 9 years ago

Related to #12 support for the fish shell

Excerion commented 7 years ago

There's an equivalent script for fish here.

SanjayVyas commented 7 years ago

I wrote a fish function to do what undistract-me does. Save it as ~/.config/fish/functions/fish_right_prompt.fish

fish_right_prompt.fish.txt

gvlasov commented 5 years ago

Snippets above work, but they don't check for the active window.

The following snippet works for me, and it cheks the active window (doesn't fire if the terminal window with the finished command is active):

https://gist.github.com/cazgp/edf0e0d0ce6ec7f09821

Installation (Debian):

  1. copied the script to ~/.config/fish/functions/undistract.sh,
  2. chmod u+x ~/.config/fish/functions/undistract.sh
  3. echo 'source ~/.config/fish/functions/undistract.sh' >> ~/.config/fish/config.fish

Works like a charm in fish 2.7.1

BarbzYHOOL commented 5 years ago

@gvlasov I use the plugin "done" (my own fork) from fisher

I guess it does the same thing but better. Not sure tho

gvlasov commented 5 years ago

@BarbzYHOOL Nice stuff, works better than what I have found.

Link for anyone interested: https://github.com/franciscolourenco/done