diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-07-16 00:34:37 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2016-07-17 08:50:28 +0000 |
commit | ed870c2ffe922590256f02dc01421ab2cf263dd0 (patch) | |
tree | 26eb333afc6dc5f47bf716d495f0d8485e1c0609 | |
parent | 2255bbe9650d1cba2f90e6c2749deacf3bce3be8 (diff) |
Fish: auto complete paths in qcd
Change-Id: I33a0edfcbe7238058a23e6f89aee78b3f250c0ea
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | scripts/qtchooser.fish | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/qtchooser.fish b/scripts/qtchooser.fish index e301d94..10ebf80 100644 --- a/scripts/qtchooser.fish +++ b/scripts/qtchooser.fish @@ -120,3 +120,12 @@ function qcd cd $DIR end +function __qt_qcd_paths + set -l token (commandline -ct) + cd $QTDIR + for d in $token*/ + echo $d + end +end + +complete -x -c qcd -a "(__qt_qcd_paths)" |