Set-ExecutionPolicy RemoteSigned -Scope User
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install microsoft-windows-terminal
choco install `
-y git.install `
--params "/GitOnlyOnPath /WindowsTerminal /NoGuiHereIntegration /NoCredentialManager"
git clone git@github.com:roflolilolmao/dotfiles "$Home\dotfiles"
& "$Home\dotfiles\powershell\upgrade.ps1"
& "$Home\dotfiles\powershell\links.ps1"
& "$Home\dotfiles\powershell\install.ps1"
Key | Value |
---|---|
EDITOR |
nvim |
XDG_CONFIG_HOME |
%USERPROFILE%\dotfiles |
Add to path:
%USERPROFILE%\.cargo\bin
Extract somewhere in ~.
Rename to q.exe
, follow the instructions.
Then, in powershell:
wsl -d q
cd ~
sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S zsh
cd ~
git clone https://github.com/roflolilolmao/dotfiles.git
cd dotfiles
git remote set-url origin git@github.com:roflolilolmao/dotfiles
ln -s $(pwd)/zsh/.zshenv ~/.zshenv
sudo ln -sf $(pwd)/wsl.conf /etc/wsl.conf
sudo ln -s /mnt/c/Users/$UserProfile/.ssh ~/.ssh # TODO: wslvar?
chsh -s /bin/zsh q
exit
.\q.exe config --append-path false
.\q.exe config --default-term wt
# We terminate the instance to reboot with the settings in `wsl.conf`.
wsl --terminate q
wsl -d q
cd ~/dotfiles
git submodule update --init
exit
wsl -d q
cd ~/dotfiles
./zsh/plugins/fzf/install --bin
yay -S man unzip neovim python-pynvim
# Don't add to path
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install ripgrep
cargo install fd-find
cargo install lsd
cargo install bat
cargo install git-delta
cargo install fnm
cargo install stylua
# Clipboard provider for nvim: https://github.com/neovim/neovim/wiki/FAQ#how-to-use-the-windows-clipboard-from-wsl
curl -sLo/tmp/win32yank.zip https://github.com/equalsraf/win32yank/releases/download/v0.0.4/win32yank-x64.zip
unzip -p /tmp/win32yank.zip win32yank.exe > /tmp/win32yank.exe
chmod +x /tmp/win32yank.exe
mv /tmp/win32yank.exe ~/.local/bin
(cd $(git config -f .gitmodules --get submodule.telescope-fzf-native.path); make)
# TODO: neuron
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install pipx pipenv
pipx install jedi-language-server
pipx install black
pipx install isort
pipx install flake8
fnm install --lts
npm i -g markdownlint-cli
npm i -g write-good
# At least I don't have to sudo install these programs :-|
# https://github.com/Schniz/fnm/issues/475
# https://github.com/Schniz/fnm/issues/486
ln -s "$(realpath $(which node))" ~/.local/bin/node
ln -s "$(realpath $(which write-good))" ~/.local/bin/write-good
ln -s "$(realpath $(which markdownlint))" ~/.local/bin/markdownlint
cd ~
rm .bash*
AHKv2 is in beta and has no standard installer. For now,
download it
and set it as default program for .ahk files. Download the
AHK zip and put the compile
folder next to the v2 exe.
Import the streamdeck profile.
MKLC.
Remove Windows path from WSL path.
If the fonts keep disappearing after a system restart.
Some article about yay.
git submodule foreach --recursive git config core.filemode false
git submodule deinit -f zsh/plugins/zsh-bd zsh/plugins/zsh-syntax-highlighting
git submodule update --remote
Terminals handle input in a specialized way. Nvim in the Windows Terminal would
not receive some inputs because of how all terminals work. For example,
<C-CR>
would send <CR>
to nvim. Adding the following escape sequences in
the terminal settings to send the input regardless of the standards:
output | input |
---|---|
<C-x> | \u001b[27;5;X~ |
<S-x> | \u001b[27;2;X~ |
Where x
is the wanted char and X
its ascii code.
I have no clue what's going on or what the escape sequence would look
like for something like <C-S-Tab>
.
Some resources: