diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-07T14·06+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-07T14·10+0000 |
commit | f2f8b0d10f3fb4ff1ca4840e2e4b58a148fc4f9a (patch) | |
tree | 13101efc494e46e6c887788fad27248c48393eb3 | |
parent | e59898f00fda17a8e1f1883bc90d71fe10c942d1 (diff) |
Support step-by-step installation instructions
I documented my consumption of wpcarro/dotfiles in the README. The dream is to just clone this repo and run `make install`. We'll get there. TODO: drop support for OSX TODO: clean up the rest of this README
-rw-r--r-- | README.md | 48 | ||||
-rw-r--r-- | configs/shared/zsh/.zshrc | 6 |
2 files changed, 52 insertions, 2 deletions
diff --git a/README.md b/README.md index 539185fed3e3..08797916ffe7 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,54 @@ other items. Configuration is everything. +# Setting up new computer + +1. Authorize computer to access dotfiles + +```bash +$ ssh-keygen -b 4096 -c 'wpcarro@gmail.com' +$ eval $(ssh-agent -option) +$ xclip -sel clip <~/.ssh/id_rsa.pub +$ browse github.com # paste ssh public key in settings +$ mkdir ~/programming +$ git clone git@github.com:wpcarro/dotfiles ~/programming +``` + +2. Install Antigen, Vundle, nix-env for package management + +```bash +$ # antigen +$ curl -L git.io/antigen >~/antigen.zsh +$ # vundle +$ g clone VundleVim/Vundle.vim.git ~/.config/nvim/bundle/Vundle.vim +$ # nix-env +$ curl https://nixos.org/nix/install | sh +$ for p in $(cat nix-env.txt); do +> nix-env -i "$p" +> done +``` + +3. Install i3 + +```bash +$ sudo apt-get install i3 +``` + +4. Install dotfiles + +TODO: include steps 2-4 in the `make install` command. + +```bash +$ cd ~/programming/dotfiles +$ DOTFILES="$(pwd)" make install +``` + + +# TODOS + +- support dependencies like fonts, terminal themes + + # SSHFS SSHFS enables seamless file transfers from your local machine to a remote diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc index 40ecd44532d6..ca49d2867fac 100644 --- a/configs/shared/zsh/.zshrc +++ b/configs/shared/zsh/.zshrc @@ -22,7 +22,7 @@ antigen apply # Personal Configuration # Set environment variables for Nix -source /usr/local/google/home/wpcarro/.nix-profile/etc/profile.d/nix.sh +source ~/.nix-profile/etc/profile.d/nix.sh # Configure fzf source "$(fzf-share)/key-bindings.zsh" @@ -31,7 +31,9 @@ source "$(fzf-share)/key-bindings.zsh" eval "$(fasd --init auto)" # Configure g4 with zsh -source /etc/bash_completion.d/g4d +if [ -f /etc/bash_completion.d/g4d ]; then + source /etc/bash_completion.d/g4d +fi # the above line slows tab-completion down dramatically because it attemtps to # autocomplete for the 600k+ users found in `compgen -u`. Below is a fix which # also restores the function of `cd ~<tab>` to display only ZSH Named |