The Obscure Location of Quick Launch
I use Launchy and so have no need for program launch icons, be it on the Desktop or Quick Launch or Windows Start. I don’t even use the Quick Launch toolbar and all I knew until recently was that you add a quick launch icon by dragging any program (or a shortcut pointing to that program) into the toolbar.\\r\\n\\r\\nToday, when I accidentally deleted one of the quick launch icons of a machine not belonging to me, I found the obscure location of the quick launch icons:\\r\\n
%APPDATA%\\\\Microsoft\\\\Internet Explorer\\\\Quick Launch
\\r\\n\\r\\n(APPDATA is an environment variable which can be found by typing echo %APPDATA% …read more
Environment Variables
Environment variables are a set of dynamic variables that can determine the environment in which a process runs. While they are more easily visible and often used in Unix-based OSs, they are equally essential on Windows. A little knowledge is especially important to write batch programs (.BAT).
The command env typed in your command prompt or Cygwin terminal will list the entire set of environment variables and their current values. My Computer –> Properties –> Advanced –> Environment Variables will also show you the Windows environment variables divided into two categories: System variables and User variables.
While on cmd each variable can …read more
The .profile in Cygwin
We have seen a few things about the .profile while customizing the Cygwin terminal. Here are the remaining sections of the file.
Prompt
export PS1=”\[\e]2;\u@\h:\w\007$green\]\u@\h:\[$pink\]\w\[$blue\]$ \[$BLUE\]”
The PS1 is a defined environment variable that determines how a prompt should behave. It stands for “Prompt Settings”. There are three variables \u, \h, and a \w. \u is the username, \h is the hostname, \w is the complete path of the working directory. The pre-defined colors $green, $pink, $blue, $BLUE (set in the .profile shown) specify the color of the display immediately following. Notice that PS1 seems to have a repetition of \u, \h and …read more




