diff --git a/pgtree.plugin.bash b/pgtree.plugin.bash index 69a6483..698535e 100644 --- a/pgtree.plugin.bash +++ b/pgtree.plugin.bash @@ -1 +1 @@ -alias pgtree="${BASH_SOURCE%.plugin.bash}/pgtree" \ No newline at end of file +alias pgtree="$(cd "${BASH_SOURCE%/*}";pwd)/pgtree/pgtree" \ No newline at end of file diff --git a/pgtree.plugin.zsh b/pgtree.plugin.zsh index c49793a..80c0c3d 100644 --- a/pgtree.plugin.zsh +++ b/pgtree.plugin.zsh @@ -1 +1 @@ -alias pgtree="${0%.plugin.zsh}/pgtree" \ No newline at end of file +alias pgtree="$(cd "${0%/*}";pwd)/pgtree" \ No newline at end of file