Skip to content

Commit 8c56d91

Browse files
committed
Debian: install completion files
Install the shell completion files introduced in commit 8a980ca. Testing on Linux Mint 20 (based on Ubuntu 18.04): * bash: OK * fish: OK * zsh: OK. Did not work when completions were installed in /usr/share/zsh/site-functions/_quick-lint-js, so I had to customize the path.
1 parent b7e1100 commit 8c56d91

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

completions/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
cmake_minimum_required(VERSION 3.10)
55
include(GNUInstallDirs)
66

7+
# zsh on Arch Linux and on Homebrew on macOS search in this path:
78
install(
89
FILES _quick-lint-js
910
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/zsh/site-functions"
1011
)
12+
# zsh on Linux Mint searches in this path:
13+
install(
14+
FILES _quick-lint-js
15+
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/zsh/vendor-completions"
16+
)
1117

1218
install(
1319
FILES quick-lint-js.bash
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
usr/bin usr
2+
usr/share/bash-completion usr/share
3+
usr/share/fish usr/share
24
usr/share/man usr/share
5+
usr/share/zsh usr/share

0 commit comments

Comments
 (0)