By default, you can get command completion for aliases in bash on Desktop Ubuntu.
For example, here's my
scanh alias (which will tab complete) from .bash_aliases:
alias scanh='egrep -v "^ \*|^\/\*|^$" '
You can create an alias for yourself in the same way. E.g.,
You can also, if you prefer, move the blocking commands out of the way.
For instance, if a command called
sublet is confounding your tab-completion, the process might look like this:
$ which sublet
$ ls -la sublet
$ sudo mv /usr/bin/sublet /usr/bin/xsublet
Linking the sublime-text-2 command to something shorter works the same way. Just make sure that the link you create is in your path:
$ echo $PATH
$ ln -s sublime-text-2 /usr/local/bin/sub
Any of the above directories, /usr/bin/, /usr/sbin, etc., will work.
If you have a stand-alone script or binary, you can also move it into the path directly:
$ sudo mv sublime-text-2 /usr/bin/sub