Shell History Mod brings terminal-style command history and line editing directly to Minecraft’s chat screen. It lets you search backward and forward through past commands after you type the first few letters, which saves time when you reuse long technical commands like /tp, /player, or /tick. This mod adds a full set of familiar Emacs and readline keyboard shortcuts for cursor movement, fast deletion, and circular history lookup, and keeps native Select All keys intact on your platform. It also expands both in-memory and saved command history to 1000 entries and automatically strips duplicate lines so only the newest copy stays saved. Everything runs strictly on your client, so commands stay unchanged and servers need no extra setup.

Shell History Mod

Features:

  • Prefix-Based History Search: Filters your chat history by the exact starting text you typed, so typing /tp and stepping backward cycles only through past /tp commands instead of unrelated chat messages.
  • Circular History Wrap-Around: Loops cleanly from the oldest matching command back to the newest entry and vice versa when you step backward or forward through search results.
  • 1000-Entry Expanded Buffer: Raises both your in-memory chat history and saved command history file to 1000 entries, far larger than vanilla Minecraft’s small default limit.
  • Automatic Duplicate Cleanup: Removes duplicate history entries automatically while keeping only the newest occurrence so repeated commands never waste history slots.
  • Normalizes existing duplicate entries inside Minecraft’s command_history.txt file automatically whenever the game starts up.
  • Preserves vanilla Select All behavior on platforms where Minecraft already binds Ctrl-A to Select All.
  • Runs purely on the client side by improving only the chat input screen, leaving server commands untouched and needing no server-side setup.

Chat Keyboard Shortcuts:

  • Up or Ctrl-P: Steps backward to the previous matching history entry for your typed prefix.
  • Down or Ctrl-N: Steps forward to the next matching history entry for your typed prefix.
  • Ctrl-B: Moves the text cursor backward along the chat line.
  • Ctrl-F: Moves the text cursor forward along the chat line.
  • Ctrl-E: Moves the text cursor straight to the end of the line.
  • Ctrl-A (macOS only): Moves to the beginning of the line while Cmd-A stays mapped to Select All.
  • Ctrl-K: Deletes all text from the cursor to the end of the line.
  • Ctrl-U: Deletes all text from the cursor back to the beginning of the line.
  • Ctrl-D: Deletes the single character directly after the cursor.
  • Ctrl-H: Deletes the single character directly before the cursor.

How to Use:

  1. Open the Minecraft chat box and type the starting part of any command you used before, such as /tp, /player, or /tick.
  2. Press Up or Ctrl-P to step backward through past entries that begin with that exact prefix; unrelated chat lines are skipped automatically.
  3. Press Down or Ctrl-N to step forward in the opposite direction; reaching either end wraps circularly around the matching results.
  4. Move along the line with Ctrl-B (backward), Ctrl-F (forward), Ctrl-E (end of line), or Ctrl-A on macOS (beginning of line) to reach the exact spot you want to edit.
  5. Fix mistakes quickly with Ctrl-H to erase the character before the cursor, Ctrl-D to erase the character after it, Ctrl-K to cut to the end of the line, or Ctrl-U to cut back to the start of the line.
  6. Press Enter to send the edited command; this mod saves up to 1000 unique entries and removes older duplicates automatically, including normalizing existing duplicates in command_history.txt whenever you launch the game.

Shell History Mod Download Links

For Minecraft 26.3, 26.2

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

How do you feel about quest books in modpacks?

3 responses · See the full results →