Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
8cf3f1c0
Unverified
Commit
8cf3f1c0
authored
2 years ago
by
Nicolas Werner
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1046 from tastytea/zsh-completion
add Zsh completion
parents
01019450
9d15bfae
No related branches found
No related tags found
No related merge requests found
Pipeline
#3016
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
resources/_nheko
+23
-0
23 additions, 0 deletions
resources/_nheko
with
24 additions
and
0 deletions
CMakeLists.txt
+
1
−
0
View file @
8cf3f1c0
...
...
@@ -743,6 +743,7 @@ if(UNIX AND NOT APPLE)
install
(
FILES
"resources/nheko.svg"
DESTINATION
"
${
CMAKE_INSTALL_DATAROOTDIR
}
/icons/hicolor/scalable/apps"
RENAME
"nheko.svg"
)
install
(
FILES
"resources/nheko.desktop"
DESTINATION
"
${
CMAKE_INSTALL_DATAROOTDIR
}
/applications"
)
install
(
FILES
"resources/nheko.appdata.xml"
DESTINATION
"
${
CMAKE_INSTALL_DATAROOTDIR
}
/metainfo"
)
install
(
FILES
"resources/_nheko"
DESTINATION
"
${
CMAKE_INSTALL_DATAROOTDIR
}
/zsh/site-functions"
)
if
(
NOT TARGET uninstall
)
configure_file
(
...
...
This diff is collapsed.
Click to expand it.
resources/_nheko
0 → 100644
+
23
−
0
View file @
8cf3f1c0
#compdef nheko
_arguments
'--help[Displays help on commandline options.]'
\
'-h[Displays help on commandline options.]'
\
'--help-all[Displays help including Qt specific options.]'
\
'--version[Displays version information.]'
\
'-v[Displays version information.]'
\
'--debug[Enables debug output.]'
\
'--profile[Create or select profile.]:profile:_nheko_select_profile'
\
'-p[Create or select profile.]:profile:_nheko_select_profile'
function
_nheko_select_profile
()
{
local
-a
profiles
=(
default
)
while
read
-r
line
;
do
[[
${
line
}
=
~
'\\auth\\device_id'
]]
&&
profiles+
=(
${
line
%%\\*
}
)
done
<
${
XDG_CONFIG_HOME
:-
~/.config
}
/nheko/nheko.conf
_values
"profile"
${
profiles
}
}
# Local Variables:
# mode: shell-script
# End:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment