mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2026-01-12 16:32:54 -05:00
some small tweaks and removals for ZSH speed
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
# basically just a list of everything I've installed with Homebrew. :)
|
# basically just a list of everything I've installed with Homebrew. :)
|
||||||
|
|
||||||
|
|
||||||
# Make sure we’re using the latest Homebrew.
|
# Make sure we're using the latest Homebrew.
|
||||||
brew update
|
brew update
|
||||||
|
|
||||||
# Upgrade any already-installed formulae.
|
# Upgrade any already-installed formulae.
|
||||||
@@ -20,7 +20,7 @@ brew upgrade
|
|||||||
# Tap casks. (Just for Android SDK here, otherwise not a fan of using casks!)
|
# Tap casks. (Just for Android SDK here, otherwise not a fan of using casks!)
|
||||||
brew tap caskroom/cask
|
brew tap caskroom/cask
|
||||||
|
|
||||||
# Save Homebrew’s installed location.
|
# Save Homebrew's installed location.
|
||||||
BREW_PREFIX=$(brew --prefix)
|
BREW_PREFIX=$(brew --prefix)
|
||||||
|
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ brew install bash
|
|||||||
brew install bash-completion
|
brew install bash-completion
|
||||||
|
|
||||||
# Install GNU core utilities (those that come with macOS are outdated).
|
# Install GNU core utilities (those that come with macOS are outdated).
|
||||||
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
|
# Don't forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
# ln -s "${BREW_PREFIX}/bin/gsha256sum" "${BREW_PREFIX}/bin/sha256sum"
|
# ln -s "${BREW_PREFIX}/bin/gsha256sum" "${BREW_PREFIX}/bin/sha256sum"
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ sudo systemsetup -setrestartfreeze on
|
|||||||
# Keyboard & Input #
|
# Keyboard & Input #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Disable smart quotes and dashes as they’re annoying when typing code
|
# Disable smart quotes and dashes as they're annoying when typing code
|
||||||
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
|
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
|
||||||
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
|
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
|
||||||
|
|
||||||
@@ -273,7 +273,7 @@ defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
|
|||||||
# Disable automatic emoji substitution (i.e. use plain text smileys)
|
# Disable automatic emoji substitution (i.e. use plain text smileys)
|
||||||
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false
|
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false
|
||||||
|
|
||||||
# Disable smart quotes as it’s annoying for messages that contain code
|
# Disable smart quotes as it's annoying for messages that contain code
|
||||||
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
|
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
|
||||||
|
|
||||||
# Disable continuous spell checking
|
# Disable continuous spell checking
|
||||||
|
|||||||
10
setup.sh
10
setup.sh
@@ -4,10 +4,10 @@ if test ! "$(uname)" = "Darwin"; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "👋 Deep breaths, everything will be fine!"
|
echo "👋 Deep breaths, everything will (probably) be fine!"
|
||||||
|
|
||||||
# This whole thing kinda hinges on having Homebrew...
|
# This whole thing kinda hinges on having Homebrew...
|
||||||
# Check for it and install it if we don't already have it
|
# Check for it and install from GitHub if it's not there
|
||||||
if test ! $(which brew); then
|
if test ! $(which brew); then
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
fi
|
fi
|
||||||
@@ -21,7 +21,7 @@ brew bundle
|
|||||||
|
|
||||||
# Get Oh My ZSH up and running
|
# Get Oh My ZSH up and running
|
||||||
if [ ! -e ~/.oh-my-zsh ]; then
|
if [ ! -e ~/.oh-my-zsh ]; then
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make ZSH the default shell environment
|
# Make ZSH the default shell environment
|
||||||
@@ -32,6 +32,6 @@ ln -s $HOME/.dotfiles/zsh/.zshrc $HOME/.zshrc
|
|||||||
ln -s $HOME/.dotfiles/git/.gitconfig $HOME/.gitconfig
|
ln -s $HOME/.dotfiles/git/.gitconfig $HOME/.gitconfig
|
||||||
ln -s $HOME/.dotfiles/zsh/git/.gitignore_global $HOME/.gitignore_global
|
ln -s $HOME/.dotfiles/zsh/git/.gitignore_global $HOME/.gitignore_global
|
||||||
|
|
||||||
# Set up macOS defaults.
|
# Set macOS defaults
|
||||||
# Needs to be last since this will restart everything when done.
|
# Needs to be last since this will restart everything when done
|
||||||
source ./macos/defaults.sh
|
source ./macos/defaults.sh
|
||||||
|
|||||||
@@ -17,12 +17,7 @@ SAVEHIST=10000
|
|||||||
ZSH_CUSTOM=$DOTFILES
|
ZSH_CUSTOM=$DOTFILES
|
||||||
ZSH_THEME="agnoster"
|
ZSH_THEME="agnoster"
|
||||||
plugins=(
|
plugins=(
|
||||||
git
|
|
||||||
# colored-man-pages
|
|
||||||
colorize
|
colorize
|
||||||
pip
|
|
||||||
python
|
|
||||||
brew
|
|
||||||
osx
|
osx
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ alias ripdock="killall Dock"
|
|||||||
alias ripmenu="killall SystemUIServer NotificationCenter"
|
alias ripmenu="killall SystemUIServer NotificationCenter"
|
||||||
|
|
||||||
alias finder="open ./"
|
alias finder="open ./"
|
||||||
alias vs="code ./"
|
alias vsc="code ./"
|
||||||
|
|
||||||
alias gundo="git reset --soft HEAD~1"
|
alias gundo="git reset --soft HEAD~1"
|
||||||
alias gc="git add . && git commit -m "
|
alias gc="git add . && git commit -m "
|
||||||
@@ -61,4 +61,4 @@ alias watchos="open /Applications/Xcode.app/Contents/Developer/Applications/Simu
|
|||||||
|
|
||||||
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to clipboard.'"
|
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to clipboard.'"
|
||||||
|
|
||||||
alias weather="curl -4 http://wttr.in/Boston"
|
alias weather="curl -4 https://wttr.in/Boston"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Default junk
|
# Default paths
|
||||||
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
export PATH="$HOME/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
@@ -7,11 +7,11 @@ export GOROOT="/usr/local/opt/go/libexec"
|
|||||||
export PATH="$PATH:$GOPATH/bin"
|
export PATH="$PATH:$GOPATH/bin"
|
||||||
export PATH="$PATH:$GOROOT/bin"
|
export PATH="$PATH:$GOROOT/bin"
|
||||||
|
|
||||||
# ruby
|
# Ruby
|
||||||
export PATH="/usr/local/opt/ruby/bin:$PATH"
|
export PATH="/usr/local/opt/ruby/bin:$PATH"
|
||||||
|
|
||||||
# metasploit
|
# Metasploit
|
||||||
export PATH=:"/opt/metasploit-framework/bin:$PATH"
|
export PATH="/opt/metasploit-framework/bin:$PATH"
|
||||||
|
|
||||||
# curl
|
# curl
|
||||||
export PATH="/usr/local/opt/curl/bin:$PATH"
|
export PATH="/usr/local/opt/curl/bin:$PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user