Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
af2daa7a
Unverified
Commit
af2daa7a
authored
Jul 27, 2022
by
Christopher Boyd
Committed by
GitHub
Jul 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(flutter): use up-to-date zsh completion (#11062)
parent
bb6c14cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
37 deletions
+15
-37
_flutter
plugins/flutter/_flutter
+0
-37
flutter.plugin.zsh
plugins/flutter/flutter.plugin.zsh
+15
-0
No files found.
plugins/flutter/_flutter
deleted
100644 → 0
View file @
bb6c14cd
#compdef flutter
#autoload
local -a _1st_arguments
_1st_arguments=(
"analyze":"Analyze the project's Dart code."
"assemble":"Assemble and build flutter resources."
"attach":"Attach to a running application."
"build":"Flutter build commands."
"channel":"List or switch flutter channels."
"clean":"Delete the build/ and .dart_tool/ directories."
"config":"Configure Flutter settings."
"create":"Create a new Flutter project."
"devices":"List all connected devices."
"doctor":"Show information about the installed tooling."
"drive":"Runs Flutter Driver tests for the current project."
"emulators":"List, launch and create emulators."
"format":" Format one or more dart files."
"help":"Display help information for flutter."
"install":"Install a Flutter app on an attached device."
"logs":"Show log output for running Flutter apps."
"make-host-app-editable":"Moves host apps from generated directories to non-generated directories so that they can be edited by developers."
"precache":"Populates the Flutter tool's cache of binary artifacts."
"pub":"Commands for managing Flutter packages."
"run":"Run your Flutter app on an attached device."
"screenshot":"Take a screenshot from a connected device."
"test":"Run Flutter unit tests for the current project."
"upgrade":"Upgrade your copy of Flutter."
"version":"List or switch flutter versions."
)
_arguments -C '*:: :->subcmds'
if (( CURRENT == 1 )); then
_describe -t commands "flutter command" _1st_arguments
return
fi
plugins/flutter/flutter.plugin.zsh
View file @
af2daa7a
...
@@ -12,3 +12,18 @@ alias flrd="flutter run --debug"
...
@@ -12,3 +12,18 @@ alias flrd="flutter run --debug"
alias
flrp
=
"flutter run --profile"
alias
flrp
=
"flutter run --profile"
alias
flrr
=
"flutter run --release"
alias
flrr
=
"flutter run --release"
alias
flupgrd
=
"flutter upgrade"
alias
flupgrd
=
"flutter upgrade"
# COMPLETION FUNCTION
if
((
!
$+
commands[flutter]
))
;
then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `flutter`. Otherwise, compinit will have already done that.
if
[[
!
-f
"
$ZSH_CACHE_DIR
/completions/_flutter"
]]
;
then
typeset
-g
-A
_comps
autoload
-Uz
_flutter
_comps[flutter]
=
_flutter
fi
flutter zsh-completion
>
|
"
$ZSH_CACHE_DIR
/completions/_flutter"
&|
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment