Jump to content

Windows equivalent of .bash_history? (decent command history)


Recommended Posts

Posted

Under *nixes, there's a file called .bash_history in your homedir, this contains all the commands you've entered at all terminals / command prompts until it reaches a predefined limit (it gets truncated beyond X lines, but that's user-configurable). This history is searchable, so if you've typed in a long and involved command a week ago, you can search and rerun it with a couple of keystrokes.

 

This functionality is rather handy.

 

I'm aware that on Windows you can search for commands entered in the current command-prompt, but that history is lost when that prompt is closed.

 

Has anyone found a tool/add-on/replacement that provides this functionality? I had a play with powershell in the hope it had been included, but couldn't find it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...