Skip to content

Commit b959e1a

Browse files
committed
merge completions content into scripts
1 parent f7e274a commit b959e1a

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ if(TRURL_COMPLETION_ZSH)
119119
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
120120
COMMAND "${SH_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/scripts/generate_completions.sh" "trurl.md" > "${_completion_zsh}"
121121
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/generate_completions.sh" "trurl.md"
122-
"${CMAKE_CURRENT_SOURCE_DIR}/completions/_trurl.zsh.in"
122+
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/_trurl.zsh.in"
123123
VERBATIM
124124
)
125125
add_custom_target("trurl-completion-zsh" ALL DEPENDS "${_completion_zsh}")

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PREFIX ?= /usr/local
3939
BINDIR ?= $(PREFIX)/bin
4040
MANDIR ?= $(PREFIX)/share/man/man1
4141
ZSH_COMPLETIONSDIR ?= $(PREFIX)/share/zsh/site-functions
42-
COMPLETION_FILES = completions/_trurl.zsh
42+
COMPLETION_FILES = scripts/_trurl.zsh
4343

4444
INSTALL ?= install
4545
PYTHON3 ?= python3

scripts/generate_completions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ generate_zsh() {
7676
-e "s/@TRURL_STANDALONE_FLAGS@/${TRURL_STANDALONE_FLAGS}/g" \
7777
-e "s/@TRURL_COMPONENT_OPTIONS@/${TRURL_COMPONENT_OPTIONS}/g" \
7878
-e "s/@TRURL_COMPONENT_LIST@/${TRURL_COMPONENT_LIST}/g" \
79-
./completions/_trurl.zsh.in
79+
./scripts/_trurl.zsh.in
8080
}
8181

8282
generate_zsh "$TRURL_RANDOM_OPTIONS"

0 commit comments

Comments
 (0)