{"id":16602609,"url":"https://github.com/xta/bashhistorycount","last_synced_at":"2026-06-06T15:01:52.604Z","repository":{"id":5108473,"uuid":"6272421","full_name":"xta/BashHistoryCount","owner":"xta","description":"Counts occurrences of ~/.bash_history and puts results in desc order","archived":false,"fork":false,"pushed_at":"2012-10-25T04:11:28.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T08:45:12.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hubwiz/example-node","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-18T03:21:58.000Z","updated_at":"2013-12-21T15:43:55.000Z","dependencies_parsed_at":"2022-07-08T21:31:21.127Z","dependency_job_id":null,"html_url":"https://github.com/xta/BashHistoryCount","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/xta%2FBashHistoryCount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2FBashHistoryCount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2FBashHistoryCount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xta%2FBashHistoryCount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xta","download_url":"https://codeload.github.com/xta/BashHistoryCount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242692347,"owners_count":20170228,"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-10-12T00:22:59.951Z","updated_at":"2026-06-06T15:01:52.578Z","avatar_url":"https://github.com/xta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash History Count\n## by @rexfeng 2012\n\nA simple ruby script that looks through ~500 lines of your ~/.bash_history file. Counts occurrences of Bash commands and puts results in desc order.\n\n# possible uses of this:\n* stats of bash commands over time (requires backing up .bash_history over time)\n* advice on what shortcuts to implement in .bash_profile based on what commands you enter too much\n\n# Instructions to Automate Backup of .bash_history in OS X with Crontab\n\n1. Create a local script that creates the task of copying your ~/.bash_history (an example in script/.backup_bash_history.sh). \n    * You need to rename \"~/backup/dir/goes/here/foryour\" to your desired backup directory.\n\n\n2. Setup recurring Crontab task to run .backup_bash_history at specified times.\n    * In Terminal, type \"crontab -e\"\n    * Press \"i\" to get into Insert Mode.\n    * Type in the following \"0 */6 * * * ~/.backup_bash_history.sh\" where \"~/.backup_bash_history.sh\" matches the correct path.\n    * Press the escape key to exit out of Insert Mode.\n    * You may either type \":wq\" (to save and exit) or \":q!\" (to exit without saving) followed by enter to submit your command.\n\n\n3. Congratulations, based on your \"crontab -e\" setup, your ~/.bash_history will be backed up to the location specified in .bash_backup_history.sh (assuming your computer is on when crontab requires it).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxta%2Fbashhistorycount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxta%2Fbashhistorycount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxta%2Fbashhistorycount/lists"}