Skip to content

Commit

Permalink
feat: improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Aug 10, 2023
1 parent ac651d2 commit d6c42ae
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 40 deletions.
2 changes: 1 addition & 1 deletion git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
[tag]
gpgsign = true
[gpg]
program = /usr/local/bin/gpg
program = /Users/rafa.gomez/bin/gpg
[pull]
rebase = true
[filter "lfs"]
Expand Down
2 changes: 1 addition & 1 deletion modules/private
4 changes: 3 additions & 1 deletion os/mac/iTerm/com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2562,6 +2562,8 @@
<string>Yes</string>
<key>Custom Directory</key>
<string>Advanced</string>
<key>Custom Locale</key>
<string>en_US</string>
<key>Default Bookmark</key>
<string>No</string>
<key>Disable Printing</key>
Expand Down Expand Up @@ -2812,7 +2814,7 @@
<key>Send Code When Idle</key>
<false/>
<key>Set Local Environment Vars</key>
<true/>
<integer>2</integer>
<key>Shortcut</key>
<string></string>
<key>Show Mark Indicators</key>
Expand Down
36 changes: 2 additions & 34 deletions os/mac/mac-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false

# Restart automatically if the computer freezes
sudo systemsetup -setrestartfreeze on

# Disable automatic capitalization
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false

Expand All @@ -52,9 +49,6 @@ defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Disable macOS text expansion
defaults write -g WebAutomaticTextReplacementEnabled -bool false

# Use Apple persistence
defaults write -g ApplePersistence -bool yes

# Sped up dialogue boxes https://robservatory.com/speed-up-your-mac-via-hidden-prefs/
defaults write NSGlobalDomain NSWindowResizeTime 0.001

Expand All @@ -70,9 +64,6 @@ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

# Disable acceleration for external mouses
defaults write .GlobalPreferences com.apple.mouse.scaling 0

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool true

# Set a blazingly fast keyboard repeat rate
Expand All @@ -91,7 +82,7 @@ defaults write NSGlobalDomain AppleMetricUnits -bool true
sudo defaults write /Library/Preferences/com.apple.loginwindow showInputMenu -bool true

# Set the timezone; see `sudo systemsetup -listtimezones` for other values
sudo systemsetup -settimezone "Europe/Brussels" >/dev/null
sudo systemsetup -settimezone "Europe/Madrid" >/dev/null

###############################################################################
# Screen #
Expand All @@ -101,22 +92,6 @@ sudo systemsetup -settimezone "Europe/Brussels" >/dev/null
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0

# Save screenshots to the desktop
defaults write com.apple.screencapture location -string "${HOME}/Desktop"

# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"

# Enable subpixel font rendering on non-Apple LCDs
# Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501
defaults write NSGlobalDomain AppleFontSmoothing -int 1

# Font rendering stuff
defaults write -g CGFontRenderingFontSmoothingDisabled -bool YES

# Reduce transparency
defaults write com.apple.universalaccess reduceTransparency 1

# Autohide the menu bar
defaults write NSGlobalDomain _HIHideMenuBar -bool true

Expand Down Expand Up @@ -159,17 +134,9 @@ defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

# Automatically open a new Finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true

# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false

# Enable AirDrop over Ethernet and on unsupported Macs running Lion
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

# Enable spring loading for directories
defaults write NSGlobalDomain com.apple.springing.enabled -bool true

Expand Down Expand Up @@ -212,6 +179,7 @@ defaults write com.apple.dock dashboard-in-overlay -bool true
# Don’t automatically rearrange Spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false

# Delay before showing the Dock
defaults write com.apple.Dock autohide-delay -float 0.3

# Automatically hide and show the Dock
Expand Down
3 changes: 3 additions & 0 deletions shell/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export JAVA_HOME='/Library/Java/JavaVirtualMachines/jbrsdk_jcef-17.0.4.1-osx-aar
export GEM_HOME="$HOME/.gem"
export GOPATH="$HOME/.go"
export PYTORCH_ENABLE_MPS_FALLBACK=1

# ------------------------------------------------------------------------------
# Apps
# ------------------------------------------------------------------------------
Expand All @@ -50,6 +51,8 @@ export BAT_THEME='gruvbox-dark'
GPG_TTY=$(tty)
export GPG_TTY

export LANG="en_US.UTF-8"

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH="/opt/homebrew/bin/chromium"

Expand Down
5 changes: 2 additions & 3 deletions symlinks/conf.macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
- ~/.hushlogin

- link:
/usr/local/bin/git: /opt/homebrew/bin/git
/usr/local/bin/gpg: /opt/homebrew/bin/gpg
scripts/private: ~/Library/Mobile Documents/com~apple~CloudDocs/etc/private_scripts
~/.config/karabiner.edn: os/mac/karabiner-goku/karabiner.edn
~/.config/karabiner: os/mac/karabiner-elements
Expand All @@ -31,11 +29,12 @@
~/bin/bash: /opt/homebrew/bin/bash
~/bin/date: /opt/homebrew/bin/gdate
~/bin/find: /opt/homebrew/bin/gfind
~/bin/git: /opt/homebrew/bin/git
~/bin/gpg: /opt/homebrew/bin/gpg
~/bin/make: /opt/homebrew/bin/gmake
~/bin/node: /opt/homebrew/opt/node@18/bin/node
~/bin/npm: /opt/homebrew/opt/node@18/bin/npm
~/bin/pecl: /opt/homebrew/opt/php@8.1/bin/pecl
~/bin/php7: /opt/homebrew/opt/php@7.4/bin/php
~/bin/php: /opt/homebrew/opt/php@8.1/bin/php
~/bin/sed: /opt/homebrew/bin/gsed
~/bin/touch: /opt/homebrew/bin/gtouch
Expand Down

0 comments on commit d6c42ae

Please sign in to comment.