Home directory configuration files and directories for Unix-like operating systems and environments, compliant with the XDG Base Directory Specification where possible.
Open a Command Prompt and set the environment variable CYGWIN_NOWINPATH
.
setx CYGWIN_NOWINPATH 1
Open a terminal and remove all files and directories from the home
directory. Remove the # DANGER!
prefix if you understand the
implications.
# DANGER! find ~ -mindepth 1 -delete
git clone --recurse-submodules https://github.com/robin-crampton/dotfiles ~
The repository contains submodules from these repositories:
- https://github.com/ervandew/supertab
- https://github.com/rupa/z
- https://github.com/seebi/dircolors-solarized.git
- https://github.com/tomasiser/vim-code-dark
- https://github.com/tpope/vim-unimpaired
~/.config/dotfiles
The script:
- restricts access to directories
~/.cache
,~/.local/state
and~/.ssh
- removes git-related files and directories created by the
git clone
above. - removes redundant files such as this README
- if running under Cygwin, changes the
cygdrive path prefix
for the user so that drives are mounted on
/mnt/<drive-letter>
instead of/cygdrive/<drive-letter>
for compatibility with the Filesystem Hierarchy Standard and the Windows Subsystem for Linux.
A typical Cygwin installation contains 2 shortcuts to the terminal:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cygwin\Cygwin64 Terminal.lnk
C:\Users\Public\Desktop\Cygwin64 Terminal.lnk
Change the Target
property of each shortcut to:
C:\cygwin64\bin\mintty.exe --position centre --size maxheight -
Or for a specific number of rows and columns:
C:\cygwin64\bin\mintty.exe --position centre --size 150,54 -
You might like to change the icon of each shortcut to this icon:
C:\cygwin64\home\%USERNAME%\.config\mintty\icons\prompt.#d4d4d4.transparent-background.ico
Close and reopen the terminal to check the installation.