This repository contains more than my dotfiles, so I don't stick to the convention, and I'm not naming it "dotfiles".
Feel free to reuse anything, but proceed with caution.
If you find something I could be doing a better way, please drop me an email at [email protected]. I always appreciate any opportunity to learn. Thank you!
- Install NerdFonts for Powerline from romkatv:
- https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
- https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
- https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
- https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
- Install python and pip
- Install node
- Install lazygit
- MacOS:
brew install jesseduffield/lazygit/lazygit
- Windows:
scoop bucket add extras; scoop install lazygit
- MacOS:
- Install libffi-dev (
brew install libffi
in macOS,sudo apt install libffi-dev
in Linux, WSL)
- Install all pending OS updates: About This Mac - Software Update...
- Install xcode command line tools:
xcode-select --install
- Check that curl is installed:
command -v curl
(it should come with the system but let's check anyway) - Set the desired machine name following https://apple.stackexchange.com/questions/287760/set-the-hostname-computer-name-for-macos if booted for the first time
- Restart
- Configure git to keep line endings as they are:
git config --global core.autocrlf false
- Follow
20190805142816
in Zettelkasten to fix network issues in corporate environment (excuse me, I can't publish this, as it contains my employer's sensitive information; it is about getting WSL network work by using wsl-vpnkit and using proxy forwarder on Windows host) - Update the system:
sudo apt update && sudo apt upgrade
- Install packages used by BUVIS:
sudo apt-get install -y build-essential checkinstall direnv libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev liblzma-dev nodejs npm vifm
curl -Ls https://tinyurl.com/buvis | /usr/bin/env bash
- Copy
get-buvis.bat
from here - Run
get-buvis.bat
incmd
Not all applications used by buvis can be configured using "dotfiles". You'll need to follow the manual instructions. Application-specific instructions are stored in .config directory.
Create post-merge
hook in .buvis/modules/scripts/.git/hooks
according to buvis scripts update automation instructions
- Go to dotfiles root:
cd $DOTFILES_ROOT
- Store credentials:
cfg config credential.helper store
- Honor global ignores:
git config --global core.excludesfile ~/.gitignore_global
Make symlink from ~/.config/powershell/Microsoft.PowerShell_profile.ps1
to PowerShell
folder in shell:DocumentsLibrary
folder.
I don't know how, will add later.
Make symlink from ~/.config/ruff/pyproject.toml
to ~/Library/Application Support/ruff/pyproject.toml
- Create symlinks in vifm (
yy
source,al
in destination)windows-home
from/mnt/c/Users/<WINDOWS_USERNAME>
Downloads
from/mnt/c/Users/<WINDOWS_USERNAME>/Downloads
onedrive-company
from/mnt/c/Users/<WINDOWS_USERNAME>/<OneDrive - company>
onedrive-private
from/mnt/c/Users/<WINDOWS_USERNAME>/<OneDrive - private>
z
from/mnt/c/Users/<WINDOWS_USERNAME>/<OneDrive - private>/z
- Fix files coloring in vifm
- Add filesystem configuration to
/etc/wsl.conf
[automount] enabled = true options = "metadata,uid=1000,gid=1000,umask=0022,fmask=11,case=off" mountFsTab = false crossDistro = true [filesystem] umask = 0022
- Restart WSL: run
wsl --terminate Ubuntu
incmd
, then start WSL - Run
chmod -R a-x+X,u-x+rwX,go-wx+rX *
in directory where you want to fix the file coloring in vifm
- Add filesystem configuration to
- Fix permissions to install npm packages globally:
npm config set prefix '~/.local/'
- Fix locale:
sudo tic -xe alacritty,alacritty-direct ~/.config/alacritty/alacritty.info
- Use WSL specific configuration for some tools:
vim $HOME/.bashrc-wsl
, add
export P_PROPERTIES_FILE="/home/bob/.pdata-wsl.properties"
export GITA_PROJECT_HOME="/home/bob/.config/wsl/"
- Let VS Code from Windows host use WSL
- Install WSL Extenstion
- Add VS Code to WSL's path:
echo 'export PATH=$PATH:/mnt/c/Users/tbouska/.local/bin/vscode/bin' >> ~/.bashrc-wsl
Run asdf install
.
- Create directory for git:
mkdir -p $HOME/git/src
- Clone repositories you need
- Repeat for each repository: add repository to gita:
gita add .
- Open terminal
- Go to user's home:
cd $HOME
- Pull updates
cfgl
- Stage updates:
cfgapa
- Commit updates with
<MESSAGE>
:cfgm "<MESSAGE>"
- Push back to repository:
cfgp
- Run
cmd
- Go to user's home:
cd %userprofile%
- Pull updates
cfgl.bat
- Stage updates:
cfgapa.bat
- Commit updates with
<MESSAGE>
:cfgm.bat "<MESSAGE>"
- Push back to repository:
cfgp.bat
- Add package to
$HOME/.default-python-packages
- Install:
pip install -r $HOME/.default-python-packages