Unix: which <program>
Windows: where.exe <program>
The .exe
requirement is due to where
being a token of the PowerShell language
Unix: which <program>
Windows: where.exe <program>
The .exe
requirement is due to where
being a token of the PowerShell language
How to retrieve the current user's home directory from either Command Prompt or PowerShell:
C:\> cmd /c "echo %homedrive%%homepath%"
C:\Users\andrew
PS C:\> cmd /c "echo %homedrive%%homepath%"
C:\Users\andrew
PS C:\> echo $Env:Path
.emacs:
(require 'package)
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(package-initialize)
Requires within-Command Prompt execution:
PS C:\> cmd /c "mklink [-j] <linky new file> <linky old file>"
You can either escape quotes with a backtick (`
):
PS C:\> cmd /c "mklink -j `"C:\Users\andrew\My Documents\.conf`" C:\Users\andrew\src\dotfiles\.conf"
GitHub-flavored Markdown does not use C-style escapes for escaping backticks inside spans. Instead, GFM uses double, significant whitespaced, backticks.
Two backticks, then a space, then a backtick, then a space, then two more backticks:
`` ` ``
produces:
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 ) | |
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) | |
# without using Razer's official uninstall tool. | |
# Tested on OS X 10.11.5 in July 2016. | |
# Edited with additional steps for later OS X versions, | |
# contributed by commenters on this gist. | |
# Step 1: In your terminal: stop and remove launch agents | |
launchctl remove com.razer.rzupdater |