Skip to content

Instantly share code, notes, and snippets.

@joshjordan
Last active February 8, 2024 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshjordan/f1abc4f1eea4f488fe6a to your computer and use it in GitHub Desktop.
Save joshjordan/f1abc4f1eea4f488fe6a to your computer and use it in GitHub Desktop.
Initialize a new machine with my preferred applications and configurations
#!/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
#!/bin/sh
brew install ag
#!/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 "josh.jordan@gmail.com"
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)"
#!/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
#!/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
brew install zsh
chsh -s /bin/zsh
./_zsh-config.sh
@chrisLaflamme
Copy link

I totally stole your git LGS alias setup for my personal machine.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment