{"id":13394574,"url":"https://github.com/natethinks/jog","last_synced_at":"2026-03-11T13:55:12.636Z","repository":{"id":42056743,"uuid":"262715848","full_name":"natethinks/jog","owner":"natethinks","description":"Simple script to print the last 10 commands you ran in the current directory","archived":false,"fork":false,"pushed_at":"2023-12-20T21:37:21.000Z","size":8,"stargazers_count":475,"open_issues_count":4,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T23:02:07.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natethinks.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-10T05:03:09.000Z","updated_at":"2024-12-26T00:49:35.000Z","dependencies_parsed_at":"2024-01-13T16:24:47.576Z","dependency_job_id":"75cb0997-0b84-4f35-8f4f-4bcdd37e8d0c","html_url":"https://github.com/natethinks/jog","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/natethinks%2Fjog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natethinks%2Fjog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natethinks%2Fjog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natethinks%2Fjog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natethinks","download_url":"https://codeload.github.com/natethinks/jog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243478154,"owners_count":20297202,"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-07-30T17:01:24.241Z","updated_at":"2026-03-11T13:55:12.558Z","avatar_url":"https://github.com/natethinks.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# jog\n\nPrint the last 10 commands you ran in the current directory\n\n![Gif of Fezzik jogging memory](https://media1.giphy.com/media/5PNM2yFGbUVK8/giphy.gif?cid=ecf05e47a644d0cfbeab72eab8ea67edb714352983ffd82b\u0026rid=giphy.gif)\n\n## Usage\n\n1. Add this function to your `.zshrc`\n\n```\nfunction zshaddhistory() {\n  if [[ \"${1}\" != ${~HISTORY_IGNORE} ]]; then\n\techo \"${1%%$'\\n'}⋮${PWD}   \" \u003e\u003e ~/.zsh_history_ext\n  fi\n}\n```\n\n2. Download or copy the `jog` script from this repo and place it somewhere in your `$PATH`.\n\n3. Run `touch ~/.zsh_history_ext ; chmod 600 ~/.zsh_history_ext` to ensure that only you can read and write your history.\n\n4. Restart your current terminal sessions for changes to take effect. `exec $SHELL`\n\n5. Use `jog` whenever you find yourself lost and confused.\n\nIt's not possible to retroactively store the directory in which a command was run, so **this tool will only work from this point forward.**\n\n## Todo List\n\nContributions and feature requests are welcome\n\n- Add support for other shells: bash, fish.\n- Automatically truncate `.zsh_history_ext` when `HISTSIZE` is surpassed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatethinks%2Fjog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatethinks%2Fjog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatethinks%2Fjog/lists"}