My repo to setup OS and dotfiles on Linux and MacOS
- curl
MacOS
On MacOS make sure brew is installed
bash <(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
In order to use encfs
install osxFUSE first.
Run initiation script
bash <(curl -fsSL https://raw.githubusercontent.com/shyd/dotfiles/main/run-once.sh)
Save env vars, etc in a .extra
file, that looks something like this:
###
### Git credentials
###
GH_USER="nickname"
GIT_AUTHOR_NAME="Your Name"
GIT_AUTHOR_EMAIL="email@you.com"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
git config --global github.user "$GH_USER"
To have an individual config for each device, create a .zshrc.local
in your home.
When deploying the dotfiles on a remote machine, you can link a script to launch new code windows if already connected.
mkdir -p ~/.local/bin
ln -s ~/.dotfiles/.local/bin/code ~/.local/bin/code
-
remote connect VS Code
-
in a ssh session type
code <dir>
to launch it in the existing remote session
curl --create-dirs -fLo ~/.local/share/fonts/"Meslo LG S Regular Nerd Font Complete Mono.ttf" \
https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Meslo/S/Regular/complete/Meslo%20LG%20S%20Regular%20Nerd%20Font%20Complete%20Mono.ttf
curl --create-dirs -fLo ~/.local/share/fonts/"Meslo LG S Regular Nerd Font Complete.ttf" \
https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Meslo/S/Regular/complete/Meslo%20LG%20S%20Regular%20Nerd%20Font%20Complete.ttf
curl --create-dirs -fLo ~/.local/share/fonts/"Hack Regular Nerd Font Complete Mono.ttf" \
https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete%20Mono.ttf
curl --create-dirs -fLo ~/.local/share/fonts/"Hack Regular Nerd Font Complete.ttf" \
https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf
As exa is not maintained anymore I switched to the fork eza.
See here eza-community/eza
Or install it with cargo.
To uninstall manually installed eza run sudo rm -rf /usr/local/bin/eza
.
Since duf is not available for all distros I use, just try the package manager if it's available.
This only works if git-delta is installed. You can use cargo to do so.
Simply run
dotfiles-update
List pi's groups
# groups pi
pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c gpio
add them to other users with
usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,spi,i2c,gpio dennis
If there are encoding errors in Powershell when operating e.g. docker containers, install and use a Nerdfont like Hack Regular Nerd Font Complete Mono Windows Compatible.