Installation and configuration for my shell.
These steps include some manual interactions, so don't just copy and paste this whole snippet.
# Set ZSH as default shell
chsh -s /bin/zsh
# Close and re-open terminal
# Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install iTerm2
brew install --cask iterm2
# Close and open iTerm2
# Install zsh
brew install zsh
# Close and open shell
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install p10k theme
brew install romkatv/powerlevel10k/powerlevel10k
# Close and open shell, should enter p10k configuration
# Select prompt to install Meslo Nerd Font
# Quit iTerm2
# Ensure that iTerm2 is using Meslo font
# Open iTerm2
# Install zsh-syntax-highlighting plugin
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Link dotfiles to home dir
ln -s ~/my-shell/zshrc ~/.zshrc
ln -s ~/my-shell/p10k.zsh ~/.p10k.zsh
# Import my_shell.json as an iTerm2 Profile via GUI. Restart iTerm2
# Install other utilities
brew install fzf
brew install hub
brew install ipcalc
brew install jq
brew install ripgrep
brew install tree
brew install vim
# Install my vim configuration
git clone git@github.com:gshively11/vim ~/.vim
cd ~/.vim
git submodule update --init --recursive
cd -
# Upgrade all brew installs
brew upgrade
# copy file to clipboard
copyfile path/file.txt
# copy current directory to clipboard
copydir
# ctrl+o to copy current shell cmd buffer to clipboard