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.
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
Install the extension - That's it! GhostShell automatically starts tracking your commands
Press Ctrl+Shift+H to view your complete command history
Use arrow keys to navigate through commands
Press Enter to run the selected command again
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
Press Ctrl+Shift+H or run command: GhostShell: Show Command History
Browse through your commands using arrow keys
Each command shows the date/time it was run and how long ago
Press Enter to run the selected command
Search Commands by Date Range
Open Command Palette (Ctrl+Shift+P)
Type and select: GhostShell: Search Commands by Date Range
Enter start date (e.g., 2024-11-01)
Enter end date (e.g., 2024-11-07)
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:
Fork the project
Make your changes
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!