Code Monkey home page Code Monkey logo

dotfiles's Introduction

dotfiles

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

Install dotfiles onto a new system

# 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/{}

Setup VIM

Install VIM plugins:

vim +PlugInstall +qall > /dev/null
# or alias
plug-install

Dependencies

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"

Homebrew

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

TODO Move below things to some other document

Intellij plugins

Themes

App Theme URL
iTerm Embark https://github.com/embark-theme/iterm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.