
The author explains the tweaks that make Ag so fast: If there are files in your source repo you don’t want to search, just add their patterns to a.

It ignores file patterns from directories created by version control systems. It is 3 to 5 times faster than ack and targets source code search. ack is optimized for searching version controlled source code.Īg or The Silver Searcher (ag chemically represents the element silver) is an optimized replacement for ack. ack is a faster replacement of grep written purely in portable Perl 5 and takes advantage of the power of Perl’s regular expressions. Grep is one of the most commonly used utilities on Linux. On GitHub: undistract-me Posted on DecemCategories HACKS/UTILS Tags favourite utilities, ubuntu hacks, useful cli tools 2 Comments on undistract-me: terminal job notifications Ag: fast grep & ack alternative If you don’t want certain commands to be ignored use the following (space separated list): $ export LONG_RUNNING_IGNORE_LIST=mv cp rsync You can override it by exporting the following: // notify if execution time > 5 seconds Notify_when_long_running_commands_finish_installīy default the utility notifies you with the execution time when a command or task takes more that 10 seconds to complete. usr/share/undistract-me/long-running.bash I added the following in my ~/.bashrc to get it working. On my system undistract-me did not work out of the box.

Speedcrunch bit converter install#
To install undistract-me on Ubuntu: $ sudo apt-get install undistract-me Usage

It uses notify-osd to update you when a console command finishes. But how do I know when the command competes? The answer on Ubuntu is a simple utility called undistract-me. I would rather use the time doing something useful. It’s quite boring to keep watching the terminal till a long-running command completes.
