My housekeeping:
I've created a new directory and created a new script file for my finances functions.
Back in my profile, I made a little function that will change to the new directory:
function do-finances {
cd MyDir
$a = (Get-Host).UI.RawUI
$a.ForegroundColor = "blue"
$a.BackgroundColor = "white"
clear
}
set-alias df do-finances
So, if I type "df", I'm moved to the right directory - and that other stuff? Well, if I'm actually going to try this as a place where I keep my account information, it would be nice to know, for sure, that I'm using PS for something different than I usually do.
And it gives me another option.
I can add the following lines to the new-transaction function from a couple of days ago:
$a = (Get-Host).UI.RawUI
$a.ForegroundColor = "magenta"
Which means that every time I have unsaved data - the transaction just created - the shell will have a different appearance.
Next time, persisting data.
No comments:
Post a Comment