Skip to content

Commit

Permalink
Use recommended_aliases for tab-completion
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed May 28, 2017
1 parent f9c888a commit edbedb8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/nodenv-alias
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ auto_symlink_point() {
fi
}

point_releases() {
echo_lines_without_symlinks ./*.*.* | sed -e 's/\.[^-.]*$//' -e 's/-[^.]*$//' | sort -u
}

pre_releases() {
echo_lines_without_symlinks ./*.*.*-*.* | sed -E -e 's/([0-9]+\.[0-9]+\.[0-9]+-.*)\..*/\1/' | sort -u
}
Expand Down Expand Up @@ -143,7 +139,7 @@ if [ --complete = "$1" ]; then
elif [ "$#" = 0 ]; then
echo --auto
echo --list
{ point_releases; nodenv-versions --bare; } | sort -u
{ recommended_aliases; nodenv-versions --bare; } | sort -u
fi
exit 0
fi
Expand Down

0 comments on commit edbedb8

Please sign in to comment.