Skip to content

Commit

Permalink
refactor: download .gitnow example file even if it's present
Browse files Browse the repository at this point in the history
resolves #10
  • Loading branch information
joseluisq committed Jun 23, 2020
1 parent 9664a86 commit 4968879
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions functions/__gitnow_config_file.fish
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ function __gitnow_read_config -d "Reads a GitNow config file"
set -l config_file "$fish_snippets/.gitnow"

# download .gitnow example file
if not test -e $config_file
echo "GitNow: Downloading default configuration..."
curl -sSo $config_file https://raw.githubusercontent.com/joseluisq/gitnow/master/.gitnow
echo "GitNow: Configured and ready to use!"
end
echo "GitNow: Downloading default configuration file..."
curl -sSo $config_file https://raw.githubusercontent.com/joseluisq/gitnow/master/.gitnow
echo "GitNow: Configured and ready to use!"

# otherwise prefer custom config file
if test -e $GITNOW_CONFIG_FILE; set config_file $GITNOW_CONFIG_FILE; end
Expand Down

0 comments on commit 4968879

Please sign in to comment.