summaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-03 10:52:21 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-03 10:52:21 +0300
commit970f4fb8ffbc1ddaee3d14e0846dc4dc8c6fd57c (patch)
tree83ba127ddf57ccea3682d2e192a0f4f1a45c1612 /internal/p10k.zsh
parentacb6b68a37213a4362b1b27f3c2ca14ad2adb86e (diff)
bug fix: set $0 to =todo.sh when sourcing the user config; fixes #403
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 53ad4796..914d55a0 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5964,7 +5964,7 @@ _p9k_init() {
local todo=$commands[todo.sh]
if [[ -n $todo ]]; then
local bash=${commands[bash]:-:}
- _p9k_todo_file="$($bash 2>/dev/null -c "
+ _p9k_todo_file="$(exec -a $todo $bash 2>/dev/null -c "
[ -e \"\$TODOTXT_CFG_FILE\" ] || TODOTXT_CFG_FILE=\$HOME/.todo/config
[ -e \"\$TODOTXT_CFG_FILE\" ] || TODOTXT_CFG_FILE=\$HOME/todo.cfg
[ -e \"\$TODOTXT_CFG_FILE\" ] || TODOTXT_CFG_FILE=\$HOME/.todo.cfg