Skip to content

Commit

Permalink
Properly ignore .git when caching completions
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jul 10, 2014
1 parent 007a5a8 commit d2a2c4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ __dots_path_comp()
# Accepts a variable number of arguments
__dots_cache() {
# Get the last updated time of the source config files
local last_update="$(find "$HOME/.local/etc" \
-path $source_path/.git -prune -o \
local source_path="$HOME/.local/etc"

local last_update="$(find "$source_path" \
-path "$source_path/.git" -prune -o \
-type f -printf '%T@\n' | sort -n | tail -1)"

# Get the name of the cached variables
Expand Down

0 comments on commit d2a2c4f

Please sign in to comment.