198 reputation
16
bio website
location Bucharest, Romania
age
visits member for 3 years, 11 months
seen Aug 6 '12 at 13:54

Oct
1
comment Can I hook PowerShell to call a function each time I execute a command?
Wow, your second solution is truly evil :)) Unfortunately it doesn't work for programs not in PATH, like scripts in the current folder
Aug
10
comment Can I hook PowerShell to call a function each time I execute a command?
Thanks, but this doesn't do what I want. It only puts the name of the current path in the title bar, not the name of the executable of the current running command.
Jul
30
comment Can I hook PowerShell to call a function each time I execute a command?
That article only describes how to statically change the window title. I want a window title which adapts to what runs inside PowerShell. For example, when I type "PS> python.exe <ENTER>", I want the title bar to change to "Administrator: python.exe", just like in CMD.EXE. When python.exe terminates, the title bar should change back to "Administrator: Command Line"