From 9e46dc2520728237e48f9fea879b85601a3aebf3 Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Mon, 28 Sep 2015 22:20:16 -0700 Subject: Updated readme with --fetch_t feature. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 3ef156d..c54764f 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,15 @@ export PROMPT="$PROMPT\$(git-radar --zsh --fetch) " ``` [(note: the `\` escaping the `$` is important)](#ensuring-prompt-execution) +You may also choose to use the `--fetch_t` option to specify your own fetch +times. `--fetch` defaults to fetch automatically every 5 minutes. With +`--fetch_t ` you can choose how often to fetch. + +eg. +```bash +export PS1="$PS1\$(git-radar --bash --fetch_t 30)" +``` + ## Customise your prompt Git Radar is highly customisable using a prompt format string. The 4 features @@ -226,6 +235,7 @@ The default prompt format uses this to add spaces only if the feature would render. In that way the prompt always looks well spaced out no matter how many features are rendering. + ## Support ### Ensuring prompt execution -- cgit v1.2.3 From 8bef8d80648accd2806ad44e8db6e3aacd92d2e7 Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Sun, 18 Oct 2015 16:27:32 -0700 Subject: Custom Fetch time now uses a variable Set the variable GIT_RADAR_FETCH_TIME in a bashrc, zshrc or gitradarrc file to customize the fetch time. --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c54764f..4f65c9c 100644 --- a/README.md +++ b/README.md @@ -182,13 +182,23 @@ export PROMPT="$PROMPT\$(git-radar --zsh --fetch) " ``` [(note: the `\` escaping the `$` is important)](#ensuring-prompt-execution) -You may also choose to use the `--fetch_t` option to specify your own fetch -times. `--fetch` defaults to fetch automatically every 5 minutes. With -`--fetch_t ` you can choose how often to fetch. +You may also choose to fetch at a customized interval of time. To do so, add +this to your .bashrc, .zshrc: -eg. ```bash -export PS1="$PS1\$(git-radar --bash --fetch_t 30)" +export GIT_RADAR_FETCH_TIME= +``` + +For example, to fetch every 30 seconds (instead of the default 5 minutes): + +```bash +export GIT_RADAR_FETCH_TIME=30 +``` + +You can also do this in the gitradarrc file: + +```bash +GIT_RADAR_FETCH_TIME=30 ``` ## Customise your prompt -- cgit v1.2.3 From dce2a1b3859ebb052c220255dc1b7e130a272ace Mon Sep 17 00:00:00 2001 From: "P.Kernevez" Date: Tue, 5 Jan 2016 23:48:24 +0100 Subject: Remove the '\n' that put the cursor on a new line (prompt on 2 lines instead of one) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7e84317..2f4e39f 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Add to your `config.fish` function fish_prompt set_color $fish_color_cwd echo -n (prompt_pwd) - git-radar --fish --fetch + echo -n (git-radar --fish --fetch) set_color normal echo -n ' > ' end -- cgit v1.2.3 From 16162c5127bba49ede35e789a302c86a068c64a3 Mon Sep 17 00:00:00 2001 From: bogem Date: Fri, 23 Sep 2016 15:22:55 +0200 Subject: Add lightweight version to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 2f4e39f..91f87cd 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ last few years. Maybe it can help you too. - [Colouring the remote commits status](#colouring-the-remote-commits-status) - [Colouring the file changes status](#colouring-the-file-changes-status) - [License](#license) +- [Links](#links) ## Installation @@ -557,6 +558,10 @@ Git Radar is licensed under the MIT license. See [LICENSE] for the full license text. +## Links + +* [mini-git-radar](https://github.com/bogem/mini-git-radar) - lightweight version of git-radar. Only for macOS and bash/fish. + [LICENSE]: https://github.com/michaeldfallen/git-radar/blob/master/LICENSE [git:(master) 1≡]: https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/stash.png [git:(master) 3A]: https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/untracked.png -- cgit v1.2.3