{"id":13990648,"url":"https://github.com/MauriceGit/Repeat_History","last_synced_at":"2025-07-22T13:30:30.376Z","repository":{"id":94241419,"uuid":"55592618","full_name":"MauriceGit/Repeat_History","owner":"MauriceGit","description":"A small but useful command for a linux shell. It makes the bash history more easily accessible than cmd+r.","archived":false,"fork":false,"pushed_at":"2019-08-27T07:24:20.000Z","size":128,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T13:17:36.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MauriceGit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-06T09:21:39.000Z","updated_at":"2021-11-25T23:18:56.000Z","dependencies_parsed_at":"2023-03-04T22:15:13.134Z","dependency_job_id":null,"html_url":"https://github.com/MauriceGit/Repeat_History","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MauriceGit%2FRepeat_History","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MauriceGit%2FRepeat_History/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MauriceGit%2FRepeat_History/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MauriceGit%2FRepeat_History/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MauriceGit","download_url":"https://codeload.github.com/MauriceGit/Repeat_History/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227098909,"owners_count":17730666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T13:03:03.247Z","updated_at":"2024-11-29T10:31:11.628Z","avatar_url":"https://github.com/MauriceGit.png","language":"Shell","readme":"# Repeat History\n\nThe script is meant to be a small addition for the linux bash.\n\nIt makes the bash history more easily accessible than going through Cmd+R manually, by listing a number (default 20) of last\ncommands. You can then just type the number of the command you would like to execute\nfrom the list.\n\nIt especially helps to get an overview of slightly different commands and makes it easier to select the right one.\n\n## Install\n\nGo to the cloned files and execute config.sh. When given no parameters, the script is given the system wide alias: **rh** (for: repeat history).\n\nOtherwise you can specify the alias name as first argument to the config.sh script.\n\n- ./config.sh [alias_name]\n\nThis appends the appropriate alias to your ~/.bashrc file.\n\nYou can alternately add it manually to your ~/.bashrc file (replace $PATH_TO_SCRIPT with the path to repeat_history.sh):\n\n**alias rh='history -a \u0026\u0026 . $PATH_TO_SCRIPT/repeat_history.sh'**\n\n## Usage\n\n**rh [searchWord] [NumberOfMaxOptions]**\n\nThis command is now system wide accessible by typing **rh** into the terminal.\n\nThe first argument to **rh** is the search word for the command, you want to execute. If no argument is given, the last 20 executed commands are shown.\n\nThe second argument to **rh** changes the number of options to show.\n\n## Screenshots\n\nSome screenshots to see how it looks like.\n\nCall to rh without arguments:\n\n![rh without arguments](https://github.com/MauriceGit/Repeat_History/blob/master/Screenshots/example_1.png \"rh without arguments\")\n\nComplete example:\n\n![complete example](https://github.com/MauriceGit/Repeat_History/blob/master/Screenshots/example_2.png \"complete example\")\n\nExample of rh without selection:\n\n![rh invalid input](https://github.com/MauriceGit/Repeat_History/blob/master/Screenshots/example_3.png \"rh with no selection\")\n\n## Todo\n\n- Remove duplicates from the list so it is not spammed with the same command.\n- Add usage and help output.\n\n\n\n\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMauriceGit%2FRepeat_History","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMauriceGit%2FRepeat_History","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMauriceGit%2FRepeat_History/lists"}