Browse by Tags

Tagged Content List
  • Blog Post: Quickly moving up a directory tree

    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 →
  • Blog Post: Moving and renaming resource keys in a .resx file

    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 →
  • Blog Post: A combined Mercurial and Git PowerShell Prompt

    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 →
  • Blog Post: Launching the TortoiseHg log more conveniently from the command line

    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 →
  • Blog Post: Making an executable take pipelined input in PowerShell

    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 →
  • Blog Post: A Mercurial PowerShell Prompt

    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...
  • Blog Post: Count the number of lines in your project with one line of Powershell

    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.
  • Blog Post: Emulating cmd.exe's START command in Microsoft Powershell

    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...
Page 1 of 1 (8 items)