This is dotfiles repo which contains custom configs related to Windows 11 + UBUNTU WSL installed on my Desktop. This can be reused using GNU Stow tool to quickly create dotfiles.
❗Caution: Not recommended to be used on existing configured devices. This is tested in Windows 10, 11, Ubuntu 20.04 and higher versions 🙌
- Install Windows updates
- Install optional updates
- Install
Winget-AutoUpdate-aaS
package from Microsoft Store. - Install
PowerShell
package from Microsoft Store.
. { iwr -useb 'decr.in/pswinget' } | iex;
. { iwr -useb 'decr.in/pswsl' } | iex;
- Go to my dotfiles repo and fork it.
- Change my repo with yours. And run below commands:
sudo apt update && sudo apt upgrade -y && sudo apt install git -y
git clone https://github.com/devcrypted/dotfiles.git ~/dotfiles
cd ~/dotfiles
chmod +x installer.sh
sudo ./installer.sh
- Copy Any dotfile from user home (~) to dotfiles folder. E.g.
cp ~/.zshrc ~/dotfiles/.zshrc
- Stow add
stow . --dotfiles --adopt
- CD to dotfiles directory
cd ~/dotfiles
- Git Add
git add .
- Git Commit
git commit -m 'Added .zshrc dotfile'
- Git Push
git push origin main
- Git Clone
git clone git@github.com:devcrypted/dotfiles.git -b main ~/dotfiles
- CD to Dotfiles
cd ~/dotfiles
- CAUTION: This command will replace your existing dotfiles in $HOME. Stow add
stow . --dotfiles --adopt
. Use it without--adopt
if you're not sure.
- If you want to ignore any dotfile to be commited in Git, add it to
.gitignore
file. - If you want to ignore any dotfile to become symlink by Stow, add it to
.stow-local-ignore
file. - Don't store any secrets, keys, tokens, and SSH RSA keys to this repo for security.
- You can create your own Docker image using command
docker build -t ubuntu-custom ~/dotfiles
- Then you can run container
docker run -d --name ubuntu1 ubuntu-custom
- Login to container using exec
docker exec -u root -it abcd /bin/bash
- Set password for user ubuntu using
passwd ubuntu
- Exit
exit
- Login using ubuntu user
docker exec -u ubuntu -it abcd /bin/bash
- Clone dotfiles
git clone https://github.com/devcrypted/dotfiles.git ~/dotfiles
- Test it by running command
chmod +x init.sh && sudo ./init.sh