File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -391,9 +391,11 @@ _project_open_targets() {
391391 [[ -n " ${name} " ]] || return 0
392392 project_path=" $( _project_open_resolve " ${name} " cache_only) "
393393 [[ -n " ${project_path} " ]] || return 0
394- find " ${project_path} " -mindepth 1 -maxdepth 1 -type d -not -name ' .*' 2> /dev/null | while IFS= read -r target_dir; do
395- printf ' %s\n' " ${target_dir##*/ } "
396- done
394+ find " ${project_path} " -mindepth 1 -maxdepth 1 -type d -not -name ' .*' 2> /dev/null |
395+ while IFS= read -r target_dir; do
396+ printf ' %s\n' " ${target_dir##*/ } "
397+ done |
398+ LC_ALL=C sort
397399}
398400
399401_project_open_complete_bash () {
Original file line number Diff line number Diff line change 44# the repeated/deferred compinit calls in zshrc. Discovery helpers live in
55# shell/aliases and are available in the interactive shell.
66
7- (( $+functions[_project_open_projects] )) || return 1
7+ # Succeed with no candidates if the discovery helpers (from shell/aliases) aren't
8+ # loaded yet, so zsh doesn't treat this as a failed completer.
9+ (( $+functions[_project_open_projects] )) || return 0
810
911local -a candidates
1012
You can’t perform that action at this time.
0 commit comments