Skip to content

Commit

Permalink
Move ignored files to dotdrop variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRobitaille committed Jan 20, 2019
1 parent 309ff70 commit 2b5dcbf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
19 changes: 7 additions & 12 deletions bin/search
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ grep \
-n \
-R \
-l \
--exclude-dir '.git' \
--exclude-dir 'node_modules' \
--exclude-dir 'public' \
--exclude-dir 'build' \
--exclude-dir 'vendor' \
--exclude-dir 'env' \
--exclude-dir '__pycache__' \
--exclude 'package.json' \
--exclude 'package-lock.json' \
--exclude 'yarn.*' \
--exclude '*.swp' \
--exclude 'tags' \
{%@@ for folder in standard_ignored_folders @@%}
--exclude-dir '{{@@ folder @@}}' \
{%@@ endfor @@%}
{%@@ for file in standard_ignored_files @@%}
--exclude '{{@@ file @@}}' \
{%@@ endfor @@%}
--exclude 'README.html' \
--exclude 'package.json' \
"$1" \
. |

Expand Down
20 changes: 19 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ variables:
color_dim_magenta: 'cc99cc'
color_dim_cyan: '66cccc'
color_dim_white: 'dddddd'

standard_ignored_folders:
- '.git'
- '.pioenvs'
- '.piolibdeps'
- 'env'
- 'build'
- 'public'
- 'vendor'
- 'htmlcov'
- 'node_modules'
- '__pycache__'

standard_ignored_files:
- 'tags'
- '*.swp'
- 'yarn.*'
- 'package-lock.json'

dynvariables:
mozilla_path: find ~/.mozilla/firefox -name '*.default'
config:
Expand Down Expand Up @@ -72,7 +91,6 @@ dotfiles:
bin:
dst: ~/bin/
src: ./bin/
link: true

# Compton
compton.conf:
Expand Down
10 changes: 3 additions & 7 deletions zsh/custom/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ export FZF_DEFAULT_COMMAND='ag -l \
--hidden \
--follow \
--skip-vcs-ignores \
--ignore .git \
--ignore node_modules \
--ignore public \
--ignore build \
--ignore vendor \
--ignore env \
--ignore __pycache__ \
{%@@ for folder in standard_ignored_folders @@%}
--ignore {{@@ folder @@}} \
{%@@ endfor @@%}
-g ""'

export KEYTIMEOUT=1
Expand Down

0 comments on commit 2b5dcbf

Please sign in to comment.