From 970f4fb8ffbc1ddaee3d14e0846dc4dc8c6fd57c Mon Sep 17 00:00:00 2001 From: romkatv Date: Fri, 3 Jan 2020 08:52:21 +0100 Subject: [PATCH] bug fix: set $0 to =todo.sh when sourcing the user config; fixes #403 --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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