feat: simplify fzf scripts and extract FZF_DEFAULT_OPTS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user