These are my configurations for terminals/shells and other dev environment things. They're pretty customized and include a lot of aliasing (git especially), custom commands, and prompt customization. Rip whatever you want at your own risk.
winget install JanDeDobbeleer.OhMyPosh
In Powershell: Install-Module posh-git
In nushell:
oh-my-posh init nu --config ~/code/configs/sutton.omp.json
(saves file to~/.oh-my-posh.nu
)- Generate zoxide script:
zoxide init nushell | save -f ~/.zoxide.nu
(source'ing is taken care of in config.nu from this repo)
- Install Rust toolchain (don't forget to install VS Build Tools)
Invoke-WebRequest -Uri https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe -OutFile $env:USERPROFILE\rustup-init.exe . $env:USERPROFILE\rustup-init.exe
- Cargo-installable utils
cargo install erdtree cargo install git-delta cargo install ripgrep cargo install fd-find cargo install sccache cargo install cork cargo install tokei cargo install zoxide --locked
- Set up git config (including git-delta, vscode, and hooks) by pasting gitconfig into global git config (
git config --global --edit
)
$env.EDITOR = code
config nu # replace contents with "source ~/code/configs/nu/shim.nu"
config env # replace contents with "source ~/code/configs/nu/env.nu"
code $profile
then paste . $env:USERPROFILE\code\configs\pwsh\profile.ps1
copy this into your .zshrc
: . ~/code/configs/zshrc.zsh
To incorporate vscode-snippets
, you can create a symlink from the location VSCode expects to the vscode-snippets
dir here by doing the following:
- Remove the old
snippets
dir, after making sure there's nothing valuable there - Create the symlink
Remove-Item -Recurse -Force $env:USERPROFILE\AppData\Roaming\Code\User\snippets
From Admin Powershell:
New-Item -ItemType SymbolicLink -Path (Join-Path $env:USERPROFILE "AppData\Roaming\Code\User\snippets") -Value (Join-Path $env:USERPROFILE "code\configs\vscode-snippets")
rm -rf `~/Library/Application Support/Code/User/snippets`
ln -s ~/code/configs/vscode-snippets `~/Library/Application Support/Code/User/snippets`
Create a symbolic link from the location erdtree expects to the the .erdtree.toml
here:
if(Test-Path $env:APPDATA\erdtree) {
Remove-Item -Recurse $env:APPDATA\erdtree
}
New-Item -ItemType Directory $env:APPDATA\erdtree
New-Item -ItemType SymbolicLink -Path $env:APPDATA\erdtree\.erdtree.toml -Value (Join-Path $env:USERPROFILE "code\configs\.erdtree.toml")
TODO
Install espanso, then:
if(Test-Path $env:APPDATA\espanso) {
Remove-Item -Recurse $env:APPDATA\espanso
}
New-Item -ItemType SymbolicLink -Path $env:APPDATA\espanso -Value (Join-Path $env:USERPROFILE "code\configs\espanso")
Copy espanso.yaml
contents into config
Write a reg key BingSearchEnabled
(DWord w/ value 0) under Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search
:
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Value 0 -Type DWord