Git Product home page Git Product logo

unix-starter-home's Introduction

Unix starter home

Home directory configuration files and directories for Unix-like operating systems and environments, compliant with the XDG Base Directory Specification where possible.

Before installing under Cygwin

Open a Command Prompt and set the environment variable CYGWIN_NOWINPATH.

setx CYGWIN_NOWINPATH 1

Installation

Clear the home directory

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

Clone the repository

git clone --recurse-submodules https://github.com/robin-crampton/unix-starter-home.git ~

The repository contains submodules from these repositories:

Run the configuration script

~/.config/unix-starter-home-configure

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.

Cygwin-specific installation steps

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 -

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

Check the installation

Close and reopen the terminal to check the installation.

unix-starter-home's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.