Last active
February 8, 2024 03:23
-
-
Save joshjordan/f1abc4f1eea4f488fe6a to your computer and use it in GitHub Desktop.
Initialize a new machine with my preferred applications and configurations
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
#!/bin/zsh | |
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" | |
setopt EXTENDED_GLOB | |
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do | |
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" | |
done | |
git clone https://gist.github.com/033fd9f674a670da0460.git ~/zprezto_custom | |
ln -s ~/zprezto_custom/prompt_joshjordan_setup ~/.zprezto/modules/prompt/functions/prompt_joshjordan_setup | |
sed -i '' '\|^zstyle.*module:prompt.*$|d' ~/.zpreztorc | |
echo "zstyle ':prezto:module:prompt' theme 'joshjordan'" >> ~/.zpreztorc | |
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
#!/bin/sh | |
brew install ag |
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
#!/bin/sh | |
git config --global push.default simple | |
git config --global alias.lgs "log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative -20 --graph" | |
git config --global alias.logcsv "log --pretty=format:'\"%h\",\"%s\",\"%cd\",\"%an\"'" | |
git config --global user.email "[email protected]" | |
git config --global user.name "Josh Jordan" | |
git config --global core.editor "vim" | |
git config --global alias.track "!remote=\$1; remote=\${remote:=origin}; git config branch.\$(git symbolic-ref HEAD --short).remote \$remote; git config branch.\$(git symbolic-ref HEAD --short).merge refs/heads/\$(git symbolic-ref HEAD --short)" |
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
#!/bin/sh | |
ruby -e "$(curl -fsSL "https://raw.githubusercontent.com/Homebrew/install/master/install")" | |
brew install iterm2 --cask && \ | |
brew install slack --cask && \ | |
brew install clipy --cask && \ | |
brew install shift --cask && \ | |
brew install 1password --cask |
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
#!/bin/sh | |
#fast cursor repeat rate | |
defaults write -g KeyRepeat -int 0 | |
# also, reduce delay before repeat | |
#stop creating awful .DS_Store files | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
#iterm | |
#use last directory for new tab | |
# natural scrolling disable |
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
brew install zsh | |
chsh -s /bin/zsh | |
./_zsh-config.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I totally stole your git LGS alias setup for my personal machine.
Thanks.