From 1a49c3f39defefb9cbff1b58f8bedba5e924ead0 Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 15 Aug 2019 02:20:46 -0400 Subject: [PATCH] Add conditional mkdir to script; more README details --- README.md | 27 +++++++++++++++++++++------ sync | 2 ++ 2 files changed, 23 insertions(+), 6 deletions(-) mode change 100644 => 100755 sync diff --git a/README.md b/README.md index 3d9d50a..8dc82e2 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,30 @@ This repo contains my preferred configurations for: Which also implies they are all dependencies to use the whole configuration. -Other dependencies: +Installation dependencies: +- git +- fish - rsync (for sync script) - curl (for fisher pkg manager) -To use all of the configurations: +To install all of the configurations: 1. Clone this repo with the `--recurse-submodules` flag. -1. `cd` into this repo and run the `sync` script (requires fish). -1. If you haven't already either run `fish` or change your default shell by adding the result of - `which fish` to `/etc/shells` and running `chsh -s /path/to/fish yourusername` and restart the - terminal. +1. `cd` into your clone and run the `sync` script (requires fish be installed). +1. If you haven't already either run `fish` or change your default shell by appending the result of + `which fish` to `/etc/shells` and running `chsh -s /path/to/fish yourusername`, then restarting + the terminal. 1. Once using fish run `fisher` to install all fish plugins. 1. Enjoy! + +Dependencies for fish aliases: +- fzf (used in `v`) +- ag (used in `vs`) + +Dependencies for prompt info (only needed in relevant projects): +- golang +- docker +- node +- typescript +- elixir +- dart +- flutter diff --git a/sync b/sync old mode 100644 new mode 100755 index 54b61ea..4196bdd --- a/sync +++ b/sync @@ -2,6 +2,8 @@ echo 'Syncing configuration files to your home dir...' +if ! test -e ~/.config; mkdir ~/.config; end + rsync -aP ./.config/fish ~/.config/ rsync -aP ./.gitconfig ~/ rsync -aP ./.tmux* ~/