Skip to content

Commit ee3643f

Browse files
committed
Move fish completion to vendor's directory
I noticed that task completions won't work recently but it can be "fixed" by symlinking the completions scripts from vendor_completions.d directory as described by fish docs [1]. Use this directory by default. Fixes #3023 [1] https://fishshell.com/docs/current/completions.html
1 parent 0470fe5 commit ee3643f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
cmake_minimum_required (VERSION 3.22...4.0)
2-
install (DIRECTORY bash fish vim hooks
2+
3+
find_package(PkgConfig REQUIRED)
4+
pkg_get_variable(FISH_COMPLETIONSDIR fish completionsdir)
5+
6+
install (DIRECTORY bash vim hooks
37
DESTINATION ${TASK_DOCDIR}/scripts)
8+
install (FILES fish/task.fish
9+
DESTINATION ${FISH_COMPLETIONSDIR})
410
install (FILES zsh/_task
511
DESTINATION share/zsh/site-functions)
612
install (DIRECTORY add-ons

0 commit comments

Comments
 (0)