| « Just cuz it looks cool... | Old books » |
Wed, Sep 23, 2009
![[Icon]](rsc/img/chain_link.gif)
In my ongoing attempts to make Windows suck less, I installed Powershell a while ago because it's the closest thing I know of to a proper native command line for Windows.
It's fairly dreadful when you're used to Bash, but it's a lot better than DOS. Practically everything is. But the history is annoying me.
As any *nix user will know, when you enter a command in a Bash shell, it saves them all, first to just a buffer, and then on logout to the .bash_history file. This means that when you next log in, all the commands that you've previously used are at your disposal. So if you've been, say, working your way through the various ffmpeg options to transcode a video the way you want it, you can come back the next day and see your last convoluted options list.
With powershell, you can't do this: You quit the shell, you lose the history.
There's a few places on the web that tell you how to make the history permanent, but they all seem to rely on you either manually saying "Save the history" before quitting and then "Restore the history" when you log back in; or require you to use a specific logout command like "bye" to get a function to automate the above.
There *must* be a way to just get the damn thing to do something as simple as remember command history without all this faffing around. Does anyone know what it is?
![[Links]](http://geekblog.oneandoneis2.org/skins/112/rsc/img/chain_link.gif)
Hmm.. new look for twitter? I hope it gets less "Ick! Change! Put it back!" nonsense than Facebook..
08/02/12
Facebook Syndication Error
11/02/12
![]()
I last listened to:
Johann Pachelbel - Canon in D major
Most recent photo:
Submersible houseboat