Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/blazeisclone/dotfiles

💫 A living breathing git bare repository of my environment configuration.
https://github.com/blazeisclone/dotfiles

Last synced: 20 days ago
JSON representation

💫 A living breathing git bare repository of my environment configuration.

Awesome Lists containing this project

README

        

## WSL 2 Setup & Configuration

Install Windows Subsystem for Linux Version 2 from powershell

```powershell
wsl --install
wsl --list --verbose
```

Install Linux distro

```powershell
wsl --install -d ubuntu
```

---

## Cloning the bare repository

Install GIT

```bash
sudo apt-get install git
```

Setup Credentials

```bash
echo 'https://${USER}:${TOKEN}@github.com' > ~/.git-credentials
```

Install Zsh

```bash
sudo apt install zsh
```

Install Oh My Zsh

```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```

ZSH Plugins

```bash
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
```

Remove default theme

```bash
rm ~/.oh-my-zsh/themes/agnoster.zsh-theme
```

Automated git clone with backup
```bash
git clone --bare https://github.com/BlazeIsClone/dotfiles.git $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .dotfiles-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no
```