Skip to content

Latest commit

 

History

History
132 lines (89 loc) · 2.06 KB

README.md

File metadata and controls

132 lines (89 loc) · 2.06 KB

My dotfiles, manage with chezmoi

Documentation

Installation

Install chezmoi

Using snap (linux)

sudo apt install snapd
sudo snap install chezmoi --classic

Using winget (windows)

winget install chezmoi

Using curl

apt install curl
sh -c "$(curl -fsLS get.chezmoi.io)"

Init dotfiles

chezmoi init canh25xp

Post install

Login to gh

gh auth login

Create Newuser

useradd -m <username>
passwd <username>
usermod -aG sudo <username>
su - <username>
chsh -s /bin/bash

a simpler way :

# As root:
apt install adduser sudo
sudo adduser username
sudo usermod -aG sudo username
su - username

Build Bat theme

bat cache --build

Install node

nvm install latest
nvm use latest
node --version
npm --version

Install Microsoft Fonts

echo "deb http://deb.debian.org/debian bookworm contrib non-free" > /etc/apt/sources.list.d/contrib.list
sudo apt install ttf-mscorefonts-installer
fc-list | grep "Times_New_Roman"

Install tree-sitter

Install visual studio and c++ build tools, open "Developer Powershell for vVsual Studio 2022"

cargo install tree-sitter-cli

Install TMU packages

C-a I

Troubleshooting

Git command returns fatal error: "detected dubious ownership"

https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html

git config --global --add safe.directory '*'

Cannot set LC_CTYPE to default locale: No such file or directory

https://askubuntu.com/questions/599808/cannot-set-lc-ctype-to-default-locale-no-such-file-or-directory

sudo dpkg-reconfigure locales

97

3

FAQ

To clear the state of runonchange scripts, run:

chezmoi state delete-bucket --bucket=entryState

To clear the state of runonce scripts, run:

chezmoi state delete-bucket --bucket=scriptState