This commit is contained in:
2022-12-15 16:39:50 -08:00
parent 485c5237dc
commit a695ed26c7
17 changed files with 1483 additions and 70 deletions

View File

@@ -0,0 +1,21 @@
# From: https://gregrs-uk.github.io/2018-11-01/open-files-neovim-iterm2-macos-finder/
# Instructions:
# - Create new application in Automator
# - Add "run applescript" step
# - Paste in the below script
# From: https://gregrs-uk.github.io/2018-11-01/open-files-neovim-iterm2-macos-finder/
# Instructions:
# - Create new application in Automator
# - Add "run applescript" step
# - Paste in the below script
on run {input, parameters}
set myPath to POSIX path of input
set cmd to "/opt/homebrew/bin/nvim -p " & quote & myPath & quote
tell application "iTerm"
activate
tell current window
create tab with default profile command cmd
end tell
end tell
end run

View File

@@ -0,0 +1,9 @@
# Based on the iTerm script
on run {input, parameters}
set myPath to POSIX path of input
set cmd to "/opt/homebrew/bin/nvim -p " & quote & myPath & quote
tell application "System Events" to tell process "kitty"
click menu item "New Tab" of menu "Shell" of menu bar 1
end tell
end run

5
setup/macos/brew_get.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
brew install bat cmake gitkraken go htop lsd neofetch node npm openjdk@11 macvim yarn yt-dlp
brew install --cask --no-quarantine middleclick
brew install --cask hammerspoon scroll-reverser rectangle alt-tab

View File

@@ -0,0 +1,4 @@
# a treatment to the downright horrendous fanboy cope session i have just witnessed on the apple support forums
defaults write com.apple.appstored LastUpdateNotification -date "2029-12-12 12:00:00 +0000"

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Disable mouse movement acceleration
defaults write .GlobalPreferences com.apple.mouse.scaling -1
# Disable scrolling acceleration
defaults write .GlobalPreferences com.apple.scrollwheel.scaling -1
# Remind to logout
echo To fully apply changes, log out and back in again.

View File

@@ -0,0 +1,8 @@
mkdir Debloaters
iwr "https://raw.githubusercontent.com/Sycnex/Windows10Debloater/master/Windows10DebloaterGUI.ps1" -o Debloaters/Windows10DebloaterGUI.ps1
scoop install windowsspyblocker
Write-Output @"
Actions:
1. Download Windows 10 Debloater GUI (https://github.com/Sycnex/Windows10Debloater)
2. Install WindowsSpyBlocker via scoop (https://github.com/crazy-max/WindowsSpyBlocker)
"@

19
setup/windows/Setup.ps1 Normal file
View File

@@ -0,0 +1,19 @@
# SETUP SCRIPT. RUN IN POWERSHELL CORE.
# Disable Telemetry/Connected Experience Service
Set-Service DiagTrack -StartupType Disabled
# Install Modules
Install-Module PSReadLine -Scope CurrentUser
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
# Install Chocolatey
Write-Output "Install Chocolatey."
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'))
# Get MesloLGS NerdFont
Write-Output "Install MesloLGS NerdFont"
iwr "https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf" -o MesloLGS_NF.ttf ; .\MesloLGS_NF.ttf
# WSL2 coming soon to non-insiders windows releases. Figure out installation once it's here.