Support // paths in zsh.

With this you can use // to refer to the root of the fuchsia tree in
zsh. For example you could `cd //scripts` or run `//packages/gn/gen.py`.

This is implemented in tab completion by monkey-patching the _path_files
completion function and in the command-line editor by fixing up the
paths in ZLE's accept-line.

This removes the ~f-NAME hack I had before that was slow, ugly and I'm
pretty sure not used by anyone but me.

Change-Id: Id28a720aad47ef73fb6169a3aced3a8f2018ee16
2 files changed
tree: 6d97dc710ce536c775a9797f25ad7f2106adf280
  1. gdb/
  2. installer/
  3. vbox/
  4. vim/
  5. zsh-completion/
  6. .gitignore
  7. AUTHORS
  8. build-bootable-rpi3-sdcard.sh
  9. build-bootable-usb-gigaboot.sh
  10. build-qemu.sh
  11. build-sysroot.sh
  12. build-toolchain.sh
  13. check-header-guards.py
  14. CONTRIBUTING.md
  15. env.sh
  16. git-file-format
  17. LICENSE
  18. makesdk.go
  19. paths.py
  20. push-package.py
  21. README.md
  22. run-dart-analysis.py
  23. run-magenta-arm64
  24. run-magenta-x86-64
  25. run.py
  26. start-dhcp-server.sh
  27. symlink-dot-packages.py
  28. update_dart_packages.py
README.md

Scripts

This repository is for scripts useful when hacking on Fuchsia. This repository should contain scripts that perform tasks spanning multiple repositories. Scripts that only operate within a single repository should live in the relevant repository.