mirror of
https://github.com/turtlebasket/env.git
synced 2026-03-04 19:44:26 -08:00
cross-platform
This commit is contained in:
21
setup-scripts/macos/NvimLauncherITerm.applescript
Normal file
21
setup-scripts/macos/NvimLauncherITerm.applescript
Normal 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
|
||||
9
setup-scripts/macos/NvimLauncherKitty.applescript
Normal file
9
setup-scripts/macos/NvimLauncherKitty.applescript
Normal 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-scripts/macos/brew_get.sh
Normal file
5
setup-scripts/macos/brew_get.sh
Normal 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
|
||||
4
setup-scripts/macos/disable_app_store_notifs.sh
Normal file
4
setup-scripts/macos/disable_app_store_notifs.sh
Normal 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"
|
||||
|
||||
10
setup-scripts/macos/disable_mouse_accel.sh
Normal file
10
setup-scripts/macos/disable_mouse_accel.sh
Normal 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.
|
||||
8
setup-scripts/windows/GetModScripts.ps1
Normal file
8
setup-scripts/windows/GetModScripts.ps1
Normal 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-scripts/windows/Setup.ps1
Normal file
19
setup-scripts/windows/Setup.ps1
Normal 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.
|
||||
Reference in New Issue
Block a user