Skip to content

Commit

Permalink
🎨 Improve code of zstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jul 8, 2024
1 parent 1ee4a32 commit 97f146d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
hooks:
- id: remove-crlf
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
Expand Down
4 changes: 1 addition & 3 deletions fzf-tab-source.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

function () {
local dir=${1:h} config_directory
zstyle -s ':fzf-tab:sources' config-directory config_directory
local sources=($dir/sources/*.zsh)
# use user's sources to override this plugin's sources
if [[ -n $config_directory ]]; then
zstyle -s ':fzf-tab:sources' config-directory config_directory &&
sources+=($config_directory/**/*.zsh(.N))
fi

# https://github.com/Freed-Wu/fzf-tab-source/issues/11
# enable $group
Expand Down

0 comments on commit 97f146d

Please sign in to comment.