djui / alias-tips

An oh-my-zsh plugin to help remembering those aliases you defined once
786 stars 50 forks source link

Find actual location of _alias_tips__PLUGIN_DIR if sourced from a symlink #29

Closed molovo closed 8 years ago

molovo commented 8 years ago

If alias-tips.plugin.zsh is sourced from a symlink (as when used with my zulu plugin manager) it fails to find alias-tips.py as it's in a different directory. This fix corrects that by detecting if the script is a symlink when it's sourced, and updating the $_alias_tips__PLUGIN_DIR variable accordingly.