diff --git a/bin/search b/bin/search index e99bc39..af2c95f 100755 --- a/bin/search +++ b/bin/search @@ -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" \ . | diff --git a/config.yaml b/config.yaml index c5748a9..7c0d800 100644 --- a/config.yaml +++ b/config.yaml @@ -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: @@ -72,7 +91,6 @@ dotfiles: bin: dst: ~/bin/ src: ./bin/ - link: true # Compton compton.conf: diff --git a/zsh/custom/exports.sh b/zsh/custom/exports.sh index 83ec138..d95fa2f 100644 --- a/zsh/custom/exports.sh +++ b/zsh/custom/exports.sh @@ -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