https://github.com/natethinks/jog Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} natethinks / jog Public * Notifications * Star 38 * Fork 1 * Simple script to print the last 10 commands you ran in the current directory 38 stars 1 fork Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show Loading {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default Loading View all tags 1 branch 0 tags Code Loading Latest commit @natethinks natethinks Update README.md ... cf580bc Nov 8, 2021 Update README.md cf580bc Git stats * 6 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time README.md Update README.md Nov 8, 2021 jog exclude jog from the printed results Nov 8, 2021 View code jog Usage Todo List README.md jog Print the last 10 commands you ran in the current directory Gif of Fezzik jogging memory Usage 1. Add this function to your .zshrc function zshaddhistory() { echo "${1%%$'\n'}|${PWD} " >> ~/.zsh_history_ext } 2. Download or copy the jog script from this repo and place it somewhere in your $PATH. 3. Restart your current terminal sessions for changes to take effect. exec $SHELL 4. Use jog whenever you find yourself lost and confused. It's not possible to retroactively store the directory in which a command was run, so this tool will only work from this point forward. Todo List Contributions and feature requests are welcome * Add support for other shells: bash, fish. * Automatically truncate .zsh_history_ext when HISTSIZE is surpassed About Simple script to print the last 10 commands you ran in the current directory Resources Readme Releases No releases published Packages 0 No packages published * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.