Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hskwakr/wsl-dotfiles

Configurations and tool installation scripts for Ubuntu 20.04.2 LTS on WSL2.
https://github.com/hskwakr/wsl-dotfiles

dotfiles wsl

Last synced: 2 months ago
JSON representation

Configurations and tool installation scripts for Ubuntu 20.04.2 LTS on WSL2.

Awesome Lists containing this project

README

        

# wsl-dotfiles
[![CI](https://github.com/hskwakr/wsl-dotfiles/actions/workflows/main.yml/badge.svg)](https://github.com/hskwakr/wsl-dotfiles/actions/workflows/main.yml)

Configurations and tool installation scripts for Ubuntu 20.04 LTS on WSL2.

# Usage
I recommend testing with playgrounds before using this repository.

### Install
Download this repo and make symlinks for dotfiles.
```sh
bash -c "$(curl -fsSL https://raw.githubusercontent.com/hskwakr/wsl-dotfiles/main/bin/install.sh)"
```
___Warning:___
This install script override `~/.gitconfig`. If you miss your original `.gitconfig`, you can find it from `~/.cache/dotfiles/default/`.

### Init
Run tool installation scripts for Ubuntu 20.04 LTS.
```sh
cd ~/wsl-dotfiles && . .bashrc && \
./etc/init/build-tools.sh && . .bashrc && \
./etc/init/programming-runtime.sh && . .bashrc && \
./etc/init/package-manager.sh && . .bashrc && \
./etc/init/util-tools.sh && . .bashrc
```

### Uninstall
Remove symlinks
```sh
cd ~ && ./wsl-dotfiles/bin/clean.sh && . .bashrc
```

Remove symlinks and uninstall tools installed from init then remove dotfile repo on local.
```sh
cd ~ && ./wsl-dotfiles/bin/run-clean-scripts.sh && \
./wsl-dotfiles/bin/clean.sh && . .bashrc
```

# My idea
___How to deal with Git line ending issues between Windows and WSL?___
I decide not to touch files on Windows from WSL and vice versa.