mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
bug fix: set $0 to =todo.sh when sourcing the user config; fixes #403
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user