feat: simplify fzf scripts and extract FZF_DEFAULT_OPTS

This commit is contained in:
2026-03-11 15:01:25 +01:00
parent 574a190468
commit f0aea1112a
5 changed files with 51 additions and 127 deletions

View File

@@ -23,7 +23,7 @@ echo "# $project_name" >>"$project/README.md"
gitignore_template=$(
find "$GGROOT"/github.com/github/gitignore/*.gitignore -exec basename {} \; \
| sed 's/\(.*\)\.gitignore/\1/' \
| fzf --cycle --bind 'tab:toggle-up,btab:toggle-down'
| fzf
)
if [[ -n $gitignore_template ]]; then
@@ -36,7 +36,7 @@ fi
license_template=$(
find "$GGROOT"/git.janezic.dev/janezicmatej/license/*.license -exec basename {} \; \
| sed 's/\(.*\)\.license/\1/' \
| fzf --cycle --bind 'tab:toggle-up,btab:toggle-down'
| fzf
)
if [[ -n $license_template ]]; then