Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>GhostShellNew to Visual Studio Code? Get it now.
GhostShell

GhostShell

nbkkundai

|
9 installs
| (1) | Free
Never lose a terminal command again! Automatically tracks all PowerShell/terminal commands. Press Ctrl+Shift+H to view history and re-run commands instantly.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Your VS Code Terminal's Perfect Memory 🧠

Never lose a terminal command again! GhostShell automatically tracks all your PowerShell/terminal commands and lets you view and re-run them instantly.

🚀 Quick Start

  1. Install the extension - That's it! GhostShell automatically starts tracking your commands
  2. Press Ctrl+Shift+H to view your complete command history
  3. Use arrow keys to navigate through commands
  4. Press Enter to run the selected command again
  5. Press Ctrl+Shift+P to do more like search by date range, clear history, refresh history, etc.

✨ Features

  • Automatic Tracking: All terminal commands are automatically saved from your PowerShell history
  • 500+ Command History: Access your last 500 unique commands
  • Date & Time Display: See exactly when each command was run
  • Date Range Search: Filter commands by specific date ranges
  • Real-time Updates: History refreshes automatically every 2 seconds
  • No Duplicates: Smart filtering removes duplicate commands
  • Keyboard Shortcuts: Lightning-fast access to your command history
  • Clear History: One-click to clear all saved commands

🎯 Available Commands

All commands can be accessed through the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):

Command Description Keyboard Shortcut
GhostShell: Show Command History Open the command history panel Ctrl+Shift+H
GhostShell: Re-run Last Command Execute the most recent command Ctrl+Shift+R
GhostShell: Search Commands by Date Range Filter commands within specific dates -
GhostShell: Clear All Command History Wipe all stored commands -
GhostShell: Refresh History Manually update command list -

📖 How to Use

View Command History

  1. Press Ctrl+Shift+H or run command: GhostShell: Show Command History
  2. Browse through your commands using arrow keys
  3. Each command shows the date/time it was run and how long ago
  4. Press Enter to run the selected command

Search Commands by Date Range

  1. Open Command Palette (Ctrl+Shift+P)
  2. Type and select: GhostShell: Search Commands by Date Range
  3. Enter start date (e.g., 2024-11-01)
  4. Enter end date (e.g., 2024-11-07)
  5. Browse filtered results and press Enter to run a command

Clear History

  • Open Command Palette (Ctrl+Shift+P)
  • Type and select: GhostShell: Clear All Command History
  • This will clear both the extension history and your PowerShell history file

Refresh History

  • Open Command Palette (Ctrl+Shift+P)
  • Type and select: GhostShell: Refresh History
  • Useful if you want to manually refresh the command list

💡 How It Works

GhostShell reads your PowerShell history file (ConsoleHost_history.txt on Windows) which contains all commands you run in your terminal - including VS Code's integrated terminal. This means:

  • ✅ Works with VS Code's integrated terminal
  • ✅ Works with external PowerShell windows
  • ✅ No manual tracking needed
  • ✅ Commands persist across VS Code restarts

📋 Requirements

  • VS Code 1.70.0 or higher
  • Windows with PowerShell (or Bash/Zsh on Linux/Mac)

⚙️ Configuration

No configuration needed! The extension works automatically after installation.

🐛 Known Issues

  • On first install, you may need to run a few commands in the terminal before they appear in the history
  • History refreshes every 2 seconds, so there may be a brief delay

Got Ideas? Join In! 🤝

Love GhostShell? Want to make it better? We'd love your help! Here's how:

  1. Fork the project
  2. Make your changes
  3. Send us a pull request

Or just open an issue if you have suggestions!

Don't forget to give us a star ⭐ if you find GhostShell useful!

Need Help? 🆘

  • Found a bug? Open an issue
  • Have questions? Check our known issues
  • Want to contribute? Check our contribution guidelines

Made with ❤️ for the VS Code community

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft