Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.54 KB

README.md

File metadata and controls

61 lines (46 loc) · 1.54 KB

installation

prerequisite

# as root
pacman -S zsh sudo git openssh
gpasswd -a YOUR_USER_NAME wheel
echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers

# as user
cd $HOME
chsh -s /usr/bin/zsh

arch linux

git clone --bare --depth 1 --recurse-submodules --shallow-submodules [email protected]:matsp/dotfiles.git $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
dotfiles checkout
dotfiles config --local status.showUntrackedFiles no
dotfiles submodule update --init --recursive

# open new shell or execute:
zsh

arch linux on wsl

export DOTFILES_INJECTED=1

git clone --bare --depth 1 --recurse-submodules --shallow-submodules [email protected]:matsp/dotfiles.git $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
dotfiles checkout
dotfiles config --local status.showUntrackedFiles no
dotfiles submodule update --init --recursive

local dotfiles container

docker build --build-arg USER=dev -t dotfiles .arch/container
docker run -ti -e DOTFILES_CONTAINER='1' -p 9090:9090 -h dev --name dev dotfiles

github container registry (ghcr.io)

docker run -ti -h dev --name dev ghcr.io/matsp/dotfiles:main

build & run local image with ssh keys

cd $HOME
curl -s -o Dockerfile https://raw.githubusercontent.com/matsp/dotfiles/main/.arch/container/local/Dockerfile && docker build -t dev .
docker volume create dev_projects
docker run -ti -e DOTFILES_CONTAINER='1' -p 9090:9090 -h dev --name dev -v dev_projects:/home/dev/projects dev