Open tomleo opened 9 years ago
I wrote a fish function to do what undistract-me does. Save it as ~/.config/fish/functions/fish_right_prompt.fish
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):
~/.config/fish/functions/undistract.sh
, chmod u+x ~/.config/fish/functions/undistract.sh
echo 'source ~/.config/fish/functions/undistract.sh' >> ~/.config/fish/config.fish
Works like a charm in fish 2.7.1
@gvlasov I use the plugin "done" (my own fork) from fisher
I guess it does the same thing but better. Not sure tho
@BarbzYHOOL Nice stuff, works better than what I have found.
Link for anyone interested: https://github.com/franciscolourenco/done
Related to #12 support for the fish shell