Skip to content

Commit

Permalink
Merge pull request #1 from sonrisacc/sonrisa-dot
Browse files Browse the repository at this point in the history
Personalize dot file
  • Loading branch information
sonrisacc authored May 10, 2022
2 parents 9e49bed + 317be3a commit eb23261
Show file tree
Hide file tree
Showing 25 changed files with 188 additions and 362 deletions.
13 changes: 0 additions & 13 deletions bin/atom-package-install

This file was deleted.

62 changes: 0 additions & 62 deletions bin/cloudapp

This file was deleted.

8 changes: 4 additions & 4 deletions bin/dot
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ done
export ZSH=$HOME/.dotfiles

# Set macOS defaults
$ZSH/macos/set-defaults.sh
$DOTFILES/macos/set-defaults.sh

# Install homebrew
$ZSH/homebrew/install.sh 2>&1
$DOTFILES/homebrew/install.sh 2>&1

# Upgrade homebrew
echo "› brew update"
brew update

# Install software
echo "$ZSH/script/install"
$ZSH/script/install
echo "$DOTFILES/script/install"
$DOTFILES/script/install
8 changes: 0 additions & 8 deletions bin/headers

This file was deleted.

30 changes: 0 additions & 30 deletions bin/movieme

This file was deleted.

56 changes: 0 additions & 56 deletions bin/mustacheme

This file was deleted.

60 changes: 0 additions & 60 deletions bin/res

This file was deleted.

4 changes: 2 additions & 2 deletions bin/set-defaults
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
#
# Sets macOS defaults by running $ZSH/macos/set-defaults.sh.
# Sets macOS defaults by running $DOTFILES/macos/set-defaults.sh.

exec $ZSH/macos/set-defaults.sh
exec $DOTFILES/macos/set-defaults.sh
6 changes: 3 additions & 3 deletions git/gitconfig.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
protocol = https
[alias]
co = checkout
promote = !$ZSH/bin/git-promote
wtf = !$ZSH/bin/git-wtf
rank-contributors = !$ZSH/bin/git-rank-contributors
promote = !$DOTFILES/bin/git-promote
wtf = !$DOTFILES/bin/git-wtf
rank-contributors = !$DOTFILES/bin/git-rank-contributors
count = !git shortlog -sn
[color]
diff = auto
Expand Down
24 changes: 11 additions & 13 deletions homebrew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.

# Check for Homebrew
if test ! $(which brew)
then
echo " Installing Homebrew for you."
# Abort on error
set -e

# Install the correct homebrew for each OS type
if test "$(uname)" = "Darwin"
then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
elif test "$(expr substr $(uname -s) 1 5)" = "Linux"
then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
fi
echo "Checking if Homebrew is already installed...";

# Checks if Homebrew is installed
if test ! $(which brew); then
echo "Installing Homebrew...";
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
else
echo "Homebrew is already installed...";
fi

exit 0
# Install the essential brews
brew install lazygit
20 changes: 10 additions & 10 deletions macos/set-defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
# Run ./set-defaults.sh and you'll be good to go.

# Disable press-and-hold for keys in favor of key repeat.
defaults write -g ApplePressAndHoldEnabled -bool false
# defaults write -g ApplePressAndHoldEnabled -bool false

# Use AirDrop over every interface. srsly this should be a default.
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
# defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1

# Always open everything in Finder's list view. This is important.
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
Expand All @@ -27,15 +27,15 @@ defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

# Run the screensaver if we're in the bottom-left hot corner.
defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.dock wvous-bl-modifier -int 0
# defaults write com.apple.dock wvous-bl-corner -int 5
# defaults write com.apple.dock wvous-bl-modifier -int 0

# Hide Safari's bookmark bar.
defaults write com.apple.Safari ShowFavoritesBar -bool false
# defaults write com.apple.Safari ShowFavoritesBar -bool false

# Set up Safari for development.
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
# defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# defaults write com.apple.Safari IncludeDevelopMenu -bool true
# defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
# defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
# defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
3 changes: 3 additions & 0 deletions nvm/path.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
3 changes: 0 additions & 3 deletions ruby/aliases.zsh

This file was deleted.

22 changes: 0 additions & 22 deletions ruby/completion.zsh

This file was deleted.

6 changes: 0 additions & 6 deletions ruby/gemrc.symlink

This file was deleted.

Loading

0 comments on commit eb23261

Please sign in to comment.