From 963598646363fbc76a166967c8cbbdd54f834cd0 Mon Sep 17 00:00:00 2001 From: joknarf Date: Sat, 19 Oct 2024 15:37:31 +0200 Subject: [PATCH] plugin absolute path --- pgtree.plugin.bash | 2 +- pgtree.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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