1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-25 00:21:58 +00:00

bug fix: set $0 to =todo.sh when sourcing the user config; fixes #403

This commit is contained in:
romkatv 2020-01-03 08:52:21 +01:00
parent acb6b68a37
commit 970f4fb8ff

View file

@ -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