Fresh FOSS

Try a use­ful new vi­su­al­i­sa­tion of your Bash his­tory

Linux User & Developer - - Contents -

HSTR 1.27.0, Mat­ter­most 5.2, Tardis 1.0.2 and Au­da­cious 3.10 re­viewed

Ctrl+R is an of­ten-used short­cut by any­one who works with the com­mand line. It brings up a search­able view of the com­mand his­tory, and saves a lot of time re-en­ter­ing long com­mands. The HSTR com­mand line util­ity im­proves the com­mand com­ple­tion fea­ture and makes it more ef­fi­cient than Bash’s de­fault. The util­ity reads through the .bash_his­tory file to pro­vide sug­ges­tion func­tion­al­ity to fil­ter the com­mands. Ad­di­tion­ally, you can use the Ctrl+/ key com­bi­na­tion to dis­play the most fre­quently used com­mands. Press the keys again to cy­cle through sev­eral pre­de­fined sort­ing or­ders, such as the length and time-stamps of the com­mands.

Be­sides the usual com­ple­tion fea­ture, HSTR en­ables you to re­move com­mands (such as those with ty­pos or con­tain­ing sen­si­tive in­for­ma­tion like pass­words) and also al­lows you to book­mark of­ten used ones for faster re­trieval.

HSTR isn’t avail­able in the repos­i­to­ries of any dis­tri­bu­tions, but its de­vel­oper pack­ages it for many pop­u­lar dis­tri­bu­tions in­clud­ing Fe­dora, Ubuntu, OpenSUSE, Gen­too, Arch and oth­ers. Fol­low the sim­ple in­struc­tions on GSTR’s GitHub page in or­der to in­stall the util­ity and then in­voke it us­ing the hh or hstr com­mand.

aboveWhile HSTR can be used straight out of the box, the util­ity of­fers con­fig­urable pa­ram­e­ters

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.