Skip to content

Commit

Permalink
Enable updates for plugin managers
Browse files Browse the repository at this point in the history
Resolves #9.
  • Loading branch information
kinoru committed May 5, 2016
1 parent 0427c9c commit 9cb02aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Skip if $cgitc_initialized is set
if not set -q cgitc_initialized
# Skip if cgitc_revision is up to date
set -l current_revision (git -C (dirname (status -f)) rev-parse HEAD)
if [ $cgitc_revision != $current_revision ]
printf 'Initializing \e[33mcgitc\e[0m ... '
for line in (cat (dirname (status -f))/abbreviations)
# 1. Strip out comments
Expand All @@ -17,6 +18,6 @@ if not set -q cgitc_initialized
abbr $key $value
end

set -U cgitc_initialized
set -U cgitc_revision $current_revision
echo 'Done'
end

0 comments on commit 9cb02aa

Please sign in to comment.