Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bredo228 committed Nov 17, 2022
0 parents commit 19288e8
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[user]
name = bredo
email = [email protected]
[core]
editor=vim
56 changes: 56 additions & 0 deletions .macOS
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/usr/bin/env bash

# Initial setup script for Macs.
# Created 2022-11-18 by bredo
# Last updated 2022-11-18 by bredo

# Mouse acceleration
defaults write .GlobalPreferences com.apple.mouse.scaling -1

# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

# Disable automatic save to cloud
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

# Disable smart quotes and dashes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false

# Disable autocorrect
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

# Disable press and hold for key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

# Set default screenshot properties
mkdir -p ${HOME}/Pictures/Screenshots
defaults write com.apple.screencapture location -string "${HOME}/Pictures/Screenshots"
defaults write com.apple.screencapture.type --string "png"
defaults write com.apple.screencapture.disable-shadow -bool true

# Finder prefs
defaults write com.apple.finder NewWindowTarget -string "PfLo"
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"

defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

defaults write com.apple.finder FXPreferredViewStyle -string "clmv"

chflags nohidden ~/Library

15 changes: 15 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax on
set ruler
set number
set showmode
set showmatch
set autoindent
set smartindent
set smarttab
filetype on
filetype indent on
filetype plugin on

set hlsearch


11 changes: 11 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if [ -d "${HOME}/.local/bin" ]
then
export PATH=$PATH:${HOME}/.local/bin
fi

PROMPT="b@%m:%~> "

HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory

0 comments on commit 19288e8

Please sign in to comment.