Code Monkey home page Code Monkey logo

configs's Introduction

configs

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.

Setup

Installs for all shells

oh-my-posh

winget install JanDeDobbeleer.OhMyPosh

In Powershell: Install-Module posh-git

In nushell:

  1. oh-my-posh init nu --config ~/code/configs/sutton.omp.json (saves file to ~/.oh-my-posh.nu)
  2. Generate zoxide script: zoxide init nushell | save -f ~/.zoxide.nu (source'ing is taken care of in config.nu from this repo)

Rust and Rust-based utils

  • 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
    

Git Config

  • Set up git config (including git-delta, vscode, and hooks) by pasting gitconfig into global git config (git config --global --edit)

Using the configs/profiles in this repo

nushell

$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"

powershell

code $profile then paste . $env:USERPROFILE\code\configs\pwsh\profile.ps1

zsh

copy this into your .zshrc: . ~/code/configs/zshrc.zsh

Non-shell setup

VSCode Snippets

To incorporate vscode-snippets, you can create a symlink from the location VSCode expects to the vscode-snippets dir here by doing the following:

  1. Remove the old snippets dir, after making sure there's nothing valuable there
  2. Create the symlink

Windows

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")

Mac/Linux

rm -rf `~/Library/Application Support/Code/User/snippets`
ln -s ~/code/configs/vscode-snippets `~/Library/Application Support/Code/User/snippets`

erdtree config

Create a symbolic link from the location erdtree expects to the the .erdtree.toml here:

Windows

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")

Mac/Linux

TODO

espanso

Install espanso, then:

Windows

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")

Mac

Copy espanso.yaml contents into config

[Windows] Disabling web search on start menu

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

configs's People

Contributors

drchat avatar suttonbradley avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

drchat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.