meta data for this page

Windows tips and tricks

  • For a list of system variables, such as $HOME etc. see these links here:
  • Win10: Disable folders being automatically shown in the “Quick Access” section of the Win Explorer window: Open an explorer Window → File → Change folder and search options → Uncheck the “Show frequently used folders in Quick Access”. Source: Howtogeek.com

Setting your $PATH

Stackoverflow to the rescue here:

set PATH=%PATH%;C:\xampp\php

This adds the part after the semicolon to the $PATH environment variable in a current terminal/console window. To set the path permanently:

setx path "%path%;C:\Program Files (x86)\Git\bin\"

But this can apparently truncate your $PATH variable to 1024 characters:

''SETX'' truncates the resulting PATH to its first 1024 characters, with the message "WARNING: The data being saved is truncated to 1024 characters." Execute ''ECHO %PATH%'' and save its output somewhere safe beforehand.

To overcome the 1024-char limit see this post on Superuser.com.

Command line use