From 7c40a56cb45cf86b860f34db4b4fb44a487b636b Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 15 Oct 2018 08:20:10 -0700 Subject: [PATCH] Try to fix cp bug for cptemplate --- cptemplate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cptemplate.sh b/cptemplate.sh index 05dd5b7..9ea39b5 100755 --- a/cptemplate.sh +++ b/cptemplate.sh @@ -47,4 +47,4 @@ fd_opts+=('--type' 'f') template_file="$(fd "${fd_opts[@]}" . "${HOME}/Templates" | fzf --read0 --select-1 --exit-0 --no-mouse)" [[ -z "${template_file}" ]] && exit 1 -cp --interactive --verbose "${template_file}" "./${1:-"${template_file}"}" +cp --interactive --verbose "${template_file}" "${1:-.}"