diff options
author | Steven Hall <Hallzy.18@gmail.com> | 2015-10-18 16:27:32 -0700 |
---|---|---|
committer | Steven Hall <Hallzy.18@gmail.com> | 2015-10-18 16:27:32 -0700 |
commit | 8bef8d80648accd2806ad44e8db6e3aacd92d2e7 (patch) | |
tree | 7074e62288ed1baf19184b82c55e2026293fce59 /README.md | |
parent | 3bdb43d9dad5766c23a34e438ad3fbd05823b6bd (diff) | |
download | git-sonar-8bef8d80648accd2806ad44e8db6e3aacd92d2e7.tar.gz git-sonar-8bef8d80648accd2806ad44e8db6e3aacd92d2e7.zip |
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.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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 <seconds>` 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=<seconds> +``` + +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 |