I am lazy and I have been working recently on optimizing my PowerShell profile to become faster from the command line. My most recent target was a command I run often to move up a directory: > cd ../ Now … Continue reading →
I work on websites where we have several resource files that are localized in many languages. This makes operations like renaming a resource key and moving a resource key to a different file annoying since you must do it across … Continue reading →
A while ago I posted the code I use to create a custom PowerShell prompt to show the status of my Mercurial repositories. Since then I have also started using Git so I updated my prompt to work for both. … Continue reading →
When working with Mercurial I usually perform most tasks from the command line but often I want to be able to visually explore the history of the whole repository or of a single file. For this I find TortoiseHg’s repository … Continue reading →
It annoys me when I am working with PowerShell try to pipe the results of a cmdlet into a exe which doesn’t understand pipelined data. To solve this problem I began aliasing some of the common programs I would like … Continue reading →
Since switching to Mercurial I often use the “hg summary” command. hg summary [–remote] aliases: sum summarize working directory state This generates a brief summary of the working directory state, including parents, branch, commit status, and available updates. With the –remote option, this will check the default paths for incoming and…
ls * -recurse -include *.aspx, *.ascx, *.cs, *.ps1 | Get-Content | Measure-Object -Line Just replace the file extensions with the ones you use in your project.
I often browse through directories using the command line interface. It is sometimes times faster and provides more information than using the GUI. However, many times there are operations that are easier in the GUI. This is why I always loved CMD.exe’s START command. The START COMMAND Starts a separate window to run a specified…