-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 19288e8
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[user] | ||
name = bredo | ||
email = [email protected] | ||
[core] | ||
editor=vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |