Based on this blog post: https://www.atlassian.com/git/tutorials/dotfiles
Which in turn is based on this post: https://news.ycombinator.com/item?id=11071754
# 1. Add an entry to .gitignore to avoid recurision problems
echo ".cfg" >> .gitignore
> Not sure this is needed anymore...
# 2. Clone this repository
git clone --bare [email protected]:patrick-elmquist/dotfiles.git $HOME/.cfg
# 3. Define the `config` alias in the current shell
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
# 4. Perform a checkout
config checkout
# 5. Don't show untracked files
config config --local status.showUntrackedFiles no
If the checkout failed with...
error: The following untracked working tree files would be overwritten by checkout:
.<SOME DOT FILE>
Please move or remove them before you can switch branches.
Aborting
...it means there are already old versions of some of the files.
Use the following to move the offending files to another folder:
mkdir -p .config-backup && \
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{}
Install VIM plugins:
vim +PlugInstall +qall > /dev/null
# or alias
plug-install
Name | URL |
---|---|
(macOS) Homebrew | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
Zsh-autosuggestions | git clone https://github.com/zsh-users/zsh-autosuggestions "$HOME/.zsh/zsh-autosuggestions" |
Zsh-syntax-highlighting | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh/zsh-syntax-highlighting" |
Zsh Pure prompt | git clone [email protected]:patrick-elmquist/pure.git "$HOME/.zsh/pure" |
Name | brew install... |
---|---|
Imagemagick | brew install imagemagick |
FFMPEG | brew install ffmpeg |
QMK CLI | brew install qmk/qmk/qmk |
Git | brew install git |
VIM | brew install vim |
scrcpy | brew install scrcpy |
iTerm2 | brew install --cask iterm2 |
rar | brew install --cask rar |
adb | brew install --cask android-platform-tools |
TODO break these up as package files for easier reading
brew install vim git ffmpeg imagemagick qmk/qmk/qmk holgerbrandl/tap/kscript svn
brew tap homebrew/cask-fonts
brew install --cask iterm2 rar android-platform-tools font-roboto-mono
// enable the gw command for gradle
brew tap gdubw/gng
brew install gng
qmk setup // to install dependencies
// note: svn is needed for downloading roboto mono
- IDEAVim
- IDEAVim Quick Scope https://plugins.jetbrains.com/plugin/19417-ideavim-quickscope
- Material Theme Lite
- Monokai Theme Pro
App | Theme | URL |
---|---|---|
iTerm | Embark | https://github.com/embark-theme/iterm |