Initial
This commit is contained in:
commit
7e204a3d9f
6 changed files with 124 additions and 0 deletions
5
.config/yadm/bootstrap
Executable file
5
.config/yadm/bootstrap
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
for f in `ls $HOME/.dotfiles/bootstrap/*.sh`; do
|
||||
bash $f
|
||||
done
|
7
.dotfiles/Brewfile
Normal file
7
.dotfiles/Brewfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
# CLI
|
||||
brew "go"
|
||||
brew "yadm"
|
||||
|
||||
# Cask
|
||||
brew "raycast"
|
||||
brew "visual-studio-code"
|
17
.dotfiles/bootstrap/00_brew.sh
Normal file
17
.dotfiles/bootstrap/00_brew.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo xcode-select --install
|
||||
|
||||
echo "Press [ENTER] when install has finished"
|
||||
read
|
||||
|
||||
# install homebrew if it's missing
|
||||
if ! command -v brew >/dev/null 2>&1; then
|
||||
echo "Installing homebrew"
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.Brewfile" ]; then
|
||||
echo "Updating homebrew bundle"
|
||||
brew bundle --global
|
||||
fi
|
11
.dotfiles/bootstrap/01_iterm.sh
Normal file
11
.dotfiles/bootstrap/01_iterm.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
system_type=$(uname -s)
|
||||
iterm_config_path=$HOME/.dotfiles/config/iterm2
|
||||
|
||||
if [ "$system_type" = "Darwin" ]; then
|
||||
if [ -d "$iterm_config_path" ]; then
|
||||
echo "Setting iTerm preference folder"
|
||||
defaults write com.googlecode.iterm2 PrefsCustomFolder "$iterm_config_path"
|
||||
fi
|
||||
fi
|
81
.dotfiles/bootstrap/10_system_settings.sh
Normal file
81
.dotfiles/bootstrap/10_system_settings.sh
Normal file
|
@ -0,0 +1,81 @@
|
|||
#!/bin/bash
|
||||
|
||||
# <Dock>
|
||||
# Autohide enabled
|
||||
defaults write com.apple.dock "autohide" -bool "true" #&& killall Dock
|
||||
|
||||
# hide/show faster
|
||||
defaults write com.apple.dock "autohide-delay" -float "0" #&& killall Dock
|
||||
|
||||
# Show only active applications
|
||||
defaults write com.apple.dock "static-only" -bool "true" #&& killall Dock
|
||||
|
||||
# <Workspaces>
|
||||
# Disable auto-switch
|
||||
defaults write com.apple.dock workspaces-auto-swoosh -bool NO #&& killall Dock
|
||||
|
||||
# Save in JPEG
|
||||
defaults write com.apple.screencapture "type" -string "jpg"
|
||||
|
||||
# <Screenshots>
|
||||
# Set default location
|
||||
defaults write com.apple.screencapture "location" -string "$HOME/Desktop/Screenshots" && killall SystemUIServer
|
||||
|
||||
# <Finder>
|
||||
# Show path bar
|
||||
defaults write com.apple.finder "ShowPathbar" -bool "true" #&& killall Finder
|
||||
|
||||
# Show status bar
|
||||
defaults write com.apple.finder ShowStatusBar -bool true #&& killall Finder
|
||||
|
||||
# Default view to columns
|
||||
defaults write com.apple.finder "FXPreferredViewStyle" -string "clmv" #&& killall Finder
|
||||
|
||||
# Default search the current folder
|
||||
defaults write com.apple.finder "FXDefaultSearchScope" -string "SCcf" #&& killall Finder
|
||||
|
||||
# Automatically delete old trash items
|
||||
defaults write com.apple.finder "FXRemoveOldTrashItems" -bool "true" #&& killall Finder
|
||||
|
||||
# Disable file extension rename warning
|
||||
defaults write com.apple.finder "FXEnableExtensionChangeWarning" -bool "true" #&& killall Finder
|
||||
|
||||
# Default save location to $HOME dir
|
||||
defaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud" -bool "false"
|
||||
|
||||
# Show icons in the title bar
|
||||
defaults write com.apple.universalaccess "showWindowTitlebarIcons" -bool "true" #&& killall Finder
|
||||
|
||||
# Hide internal disks on desktop
|
||||
defaults write com.apple.finder "ShowHardDrivesOnDesktop" -bool "false" #&& killall Finder
|
||||
|
||||
# Show external disks on desktop
|
||||
defaults write com.apple.finder "ShowExternalHardDrivesOnDesktop" -bool "true" #&& killall Finder
|
||||
|
||||
# Show removable media on desktop
|
||||
defaults write com.apple.finder "ShowRemovableMediaOnDesktop" -bool "false" #&& killall Finder
|
||||
|
||||
# Show connected servers on desktop
|
||||
defaults write com.apple.finder "ShowMountedServersOnDesktop" -bool "true" #&& killall Finder
|
||||
|
||||
# <Mouse>
|
||||
# Disable natural scrolling
|
||||
defaults write -g com.apple.swipescrolldirection -bool NO #&& killall SystemUIServer
|
||||
|
||||
# <Keyboard>
|
||||
# Repeat characters on key hold
|
||||
defaults write NSGlobalDomain "ApplePressAndHoldEnabled" -bool "false"
|
||||
|
||||
# <Time machine>
|
||||
# Don't offer disks for backup
|
||||
defaults write com.apple.TimeMachine "DoNotOfferNewDisksForBackup" -bool "false"
|
||||
|
||||
# <Music>
|
||||
# Disable notifications for playing songs
|
||||
defaults write com.apple.Music "userWantsPlaybackNotifications" -bool "false" #&& killall Music
|
||||
|
||||
# <Kill>
|
||||
killall Dock 2> /dev/null
|
||||
killall SystemUIServer 2> /dev/null
|
||||
killall Finder 2> /dev/null
|
||||
killall Music 2> /dev/null
|
3
.dotfiles/bootstrap/99_brew_install.sh
Normal file
3
.dotfiles/bootstrap/99_brew_install.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
brew bundle --file=$HOME/.dotfiles/Brewfile
|
Loading…
Add table
Add a link
Reference in a new issue