a collection of my configuration files
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add languages to readme code blocks

+12 -10
+12 -10
README.md
··· 4 4 5 5 ## Windows 6 6 ### [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10) 7 - ``` 7 + ```powershell 8 8 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 9 9 ``` 10 10 [WSL2 Kernel update package for x64](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi) 11 - ``` 11 + ```powershell 12 12 dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 13 13 wsl --set-default-version 2 14 14 ``` 15 15 16 16 [Share SSH keys between Windows and WSL](https://devblogs.microsoft.com/commandline/sharing-ssh-keys-between-windows-and-wsl-2/) 17 - ``` 17 + 18 + ```bash 18 19 cp -r /mnt/c/Users/<username>/.ssh ~/.ssh 19 20 # fix permissions 20 21 chmod 600 ~/.ssh/id_rsa 21 22 ``` 22 23 23 24 ### [Chocolatey](https://chocolatey.org/install) 24 - ``` 25 + ```powershell 25 26 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 26 27 ``` 27 28 28 29 ### [Scoop](https://scoop.sh/) 29 - ``` 30 + ```powershell 30 31 Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') 31 32 32 33 # or shorter 33 34 iwr -useb get.scoop.sh | iex 34 35 ``` 35 36 **Note**: if you get an error you might need to change the execution policy (i.e. enable Powershell) with 36 - ``` 37 + 38 + ```powershell 37 39 Set-ExecutionPolicy RemoteSigned -scope CurrentUser 38 40 ``` 39 41 ··· 44 46 Installation 45 47 46 48 Vim 47 - ``` 49 + ```powershell 48 50 iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` 49 51 ni $HOME/vimfiles/autoload/plug.vim -Force 50 52 ``` 51 53 NeoVim 52 - ``` 54 + ```powershell 53 55 iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` 54 56 ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force 55 57 ``` ··· 60 62 Installation 61 63 62 64 Vim 63 - ``` 65 + ```bash 64 66 curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ 65 67 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 66 68 ``` 67 69 NeoVim 68 - ``` 70 + ```bash 69 71 sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ 70 72 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' 71 73 ```