Package: fastHistory
fastHistory 2 - speed up your terminal!IntroSupported systemsInstallUpdateCommands and syntaxCopyright and dependenciesLicenseStore, search and automatically paste all your favourite commands directly in your terminal with anew and faster way!With the newTDLR-pagesintegration, you can quickly discover and select more than 10000 ready-to-use command examples, directly in your terminal.IntroWhy you need it?How often do you need to reuse a command but you cannot remember it (with all the needed options/flags)?# example of a common but not so 'easy-to-remember' bash command from my bash history$tar-xvzffile.tar.gzHow many times do you search the same commands on Google, over and over?42 times..  yes..  based on my experience the answer is42And how many times have you told yourself to store thissuperuseful command but you didn't?I saved them all ..totally, with a good and detailed explanation for each commandif you know what I am talking about,fastHistoryis the tool you are looking for!Usage samplefastHistorycan save your commands directly from your terminal, all you need is a#$tar-xvzffile.tar.gz#/\\--fastHistorywillstore'tar -xvzf file.tar.gz'initslocaldatabaseYou can specify one or moretags$tar-xvzffile.tar.gz#untar #extract #archiveor adescription$tar-xvzffile.tar.gz#@extract compressed files from archiveorboth$tar-xvfarchive.tar.gz#untar @extract compressed files from archiveTo search the saved commands, all you need isfand the selected command wiil beautomatically pastedinto your terminal!$fFor each stored command you can get a quick summary from the man pagenote: this feature does not cover the syntax of all commandsAnd easily edit the tag and description fieldsFurthermore, you can easily export/import all data to makebackupsor to share your commands with a different machine$f--export
$f--importfastHistory_2020-03-02.dbDiscover new commandsIn theDiscoverymode, you can easily find examples of commands from theTDLR-pages, a collection of community-maintained help pages. The search works both by command name and description. Furthermore, the+icon shows you which command is already installed on your system.Offline featureFastHistorydoes not need any internet connection, soyou can use it also offline!Supported OSsfastHistory can work in any OS withpython3and abashterminalzshis also supported!List of tested OSs:OSOS VersionShellPython versionsfastHistory versionTest modeCommentUbuntu16.04, 18.04, 20.04*bash3.6, 3.7, 3.8latestunittest*xclipmay need to be installed to enable the copy-to-clipboard featuremacOS10.15bash3.6, 3.7, 3.8latestunittestpython3 needs to beinstalledFedora29bash3.52.0.0manualpip3 requires the--userflagDebian9bash3.52.3.6manualDebian10zsh*3.72.0.0manual*syntax limitationWindows*10 (1809)bash3.62.4.1manual*using theWindows Subsystem for Linux(WSL) you can execute and storeWindows commandsHow to installRequirementspython3python3-pip(only for pip3 installation)Install with pip3pip3 install fasthistory$HOME/.local/bin/fclose and reopen your terminalNote: be sure to not usepip(python2) norsudo(install it only for the current user)Install with installer.sh (offline mode)download the latest release with thiseasy-to-typelink or manually downloaditwget mkcn.me/fmove it to the target systemextract it and run the installer with the target usertar -xvzf fcd fastHistory-X.X./installer.shclose and reopen your terminal(optional) delete installation filesrm -r f fastHistory-X.XAll in one-linecd $(mktemp -d /tmp/f.XXXXX) && wget https://mkcn.me/f && tar -xvzf f && ./fastHistory-*/installer.sh && cd -How to updateUpdate with f (available from 2.1.1)f --updateclose and reopen your terminalUpdate with pip3pip3 install -U --no-cache-dir fasthistoryfclose and reopen your terminalUpdate with installer.shsame steps asinstallationNote: to update from the 1.x.x version your need to followthese stepsHow to uninstalldownload the installer script and make it executablewget https://raw.githubusercontent.com/mkcn/fastHistory/master/installer.shchmod +x installer.shrun it with the uninstall flag./installer.sh -uNote:pip3 install fasthistoryis not sufficient to uninstall fastHistoryCommands and systaxFind out more about commands and syntax in theWikisectionCopyright and dependencieshttps://github.com/tldr-pages/tldrgoal: collaborative cheatsheets for console commandschanges: Thepagefolder has been copied to support offline mode and the syntax modified to improve the search speedcode section:fastHistory/tldr/tldr/https://github.com/wong2/pickgoal: python module modified to build the command-selection menucode section:fastHistory/pickhttps://github.com/rcaloras/bash-preexecgoal: bash script used to hook the commands from the terminalcode section:fastHistory/bash/bash-preexec.shhttps://pypi.org/project/pyperclip/goal: copy-to-clipboard featurecode section:(optional) pip modulehttps://pypi.org/project/bashlex/goal: parse commands to fill the 'Man page info' sectioncode section:(optional) pip moduleLicenseThe license for this is the same as that used by GNU bash, GNU GPL v3+.