Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/blazeisclone/dotfiles
- Owner: BlazeIsClone
- Created: 2022-01-16T15:21:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T05:56:34.000Z (almost 2 years ago)
- Last Synced: 2024-11-02T00:25:00.967Z (2 months ago)
- Language: Shell
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```