flutter.plugin.zsh 828 B

1234567891011121314151617181920212223242526272829
  1. alias fl="flutter"
  2. alias flattach="flutter attach"
  3. alias flb="flutter build"
  4. alias flchnl="flutter channel"
  5. alias flc="flutter clean"
  6. alias fldvcs="flutter devices"
  7. alias fldoc="flutter doctor"
  8. alias flpub="flutter pub"
  9. alias flget="flutter pub get"
  10. alias flr="flutter run"
  11. alias flrd="flutter run --debug"
  12. alias flrp="flutter run --profile"
  13. alias flrr="flutter run --release"
  14. alias flupgrd="flutter upgrade"
  15. # COMPLETION FUNCTION
  16. if (( ! $+commands[flutter] )); then
  17. return
  18. fi
  19. # If the completion file doesn't exist yet, we need to autoload it and
  20. # bind it to `flutter`. Otherwise, compinit will have already done that.
  21. if [[ ! -f "$ZSH_CACHE_DIR/completions/_flutter" ]]; then
  22. typeset -g -A _comps
  23. autoload -Uz _flutter
  24. _comps[flutter]=_flutter
  25. fi
  26. flutter zsh-completion >| "$ZSH_CACHE_DIR/completions/_flutter" &|