Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pawelbialaszczyk/dotfiles
Windows dotfiles managed using a bare git repository.
https://github.com/pawelbialaszczyk/dotfiles
configuration dotfiles
Last synced: 26 days ago
JSON representation
Windows dotfiles managed using a bare git repository.
- Host: GitHub
- URL: https://github.com/pawelbialaszczyk/dotfiles
- Owner: pawelbialaszczyk
- Created: 2017-07-09T19:57:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T14:07:46.000Z (5 months ago)
- Last Synced: 2024-02-25T14:00:08.176Z (4 months ago)
- Topics: configuration, dotfiles
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- jimsghstars - pawelbialaszczyk/dotfiles - Windows dotfiles managed using a bare git repository. (Shell)
README
# dotfiles
Windows dotfiles managed using a bare git repository. No extra tooling or symlinks required.
## Prerequisites
The PowerShell profile requires the following modules to be installed:
- [posh-git](https://github.com/dahlbyk/posh-git)
- [PSColor](https://github.com/Davlind/PSColor)
- [PSReadLine](https://github.com/PowerShell/PSReadLine)## Setup
Clone as a bare repository:
```sh
git clone --bare https://github.com/pawelbialaszczyk/dotfiles.git $HOME/.dotfiles
```Checkout to restore working tree files:
```sh
git --git-dir=$HOME/.dotfiles --work-tree=$HOME checkout
```Configure the repository to include the git config:
```sh
git --git-dir=$HOME/.dotfiles --work-tree=$HOME config --local include.path ../.dotfilesconfig
```Restart PowerShell and from now on use the `dotfiles` command as an alias for git while working with dotfiles.
In case PowerShell doesn't recognize the `dotfiles` command, you need to dot source the profile script in your profile file:
```sh
echo '. "$HOME\Documents\PowerShell\Profile.ps1"' > $PROFILE
```