diff options
-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 |