Pseudo initial

This commit is contained in:
Felipe M 2024-01-25 09:47:54 +01:00
parent 7e204a3d9f
commit cdfac4d089
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
13 changed files with 1312 additions and 24 deletions

View file

@ -1,17 +0,0 @@
#!/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/00_xcode.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Check if Xcode CLI tools are installed. Install if not.
if [ "$(xcode-select --version)" == "" ]; then
sudo xcode-select --install
sudo xcodebuild -license accept
echo "Press [ENTER] when install has finished"
read
fi

12
.dotfiles/bootstrap/10_brew.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# 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

View file

View file

@ -8,11 +8,11 @@ defaults write com.apple.dock "autohide" -bool "true" #&& killall Dock
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
defaults write com.apple.dock "static-only" -bool "false" #&& killall Dock
# <Workspaces>
# Disable auto-switch
defaults write com.apple.dock workspaces-auto-swoosh -bool NO #&& killall Dock
# Enable auto-switch to most recent app
defaults write com.apple.dock workspaces-auto-swoosh -bool YES #&& killall Dock
# Save in JPEG
defaults write com.apple.screencapture "type" -string "jpg"
@ -64,7 +64,7 @@ defaults write -g com.apple.swipescrolldirection -bool NO #&& killall SystemUISe
# <Keyboard>
# Repeat characters on key hold
defaults write NSGlobalDomain "ApplePressAndHoldEnabled" -bool "false"
defaults write NSGlobalDomain "ApplePressAndHoldEnabled" -bool "false"
# <Time machine>
# Don't offer disks for backup
@ -78,4 +78,4 @@ defaults write com.apple.Music "userWantsPlaybackNotifications" -bool "false" #&
killall Dock 2> /dev/null
killall SystemUIServer 2> /dev/null
killall Finder 2> /dev/null
killall Music 2> /dev/null
killall Music 2> /dev/null

8
.dotfiles/bootstrap/81_pipx.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
pipx ensurepath
pipx install yt-dlp
pipx install lektor
pipx reinstall-all

7
.dotfiles/bootstrap/85_nvim.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# Install nvchad
if [ ! -d "$HOME/.config/nvim" ]; then
echo "Installing nvchad"
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
fi

View file

@ -0,0 +1,7 @@
#!/bin/bash
# Install oh-my-zsh if the folder does not exist
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi

View file

@ -0,0 +1,7 @@
#!/bin/bash
# Handled by brewfile
# mas install 1475387142 # Tailscale
# mas install 497799835 # Xcode
# mas install 1289583905 # Pixelmator Pro