feat(ZSH): auto start nushell if it exits when init zsh

This commit is contained in:
2026-05-27 00:13:28 +08:00
parent 59051a86c5
commit 4a912cf7e7
2 changed files with 30 additions and 2 deletions
+4
View File
@@ -7,6 +7,10 @@ if [ ! -n "${ZSH_VERSION}" ]; then
return 1
fi
if [ $+commands[nu] ]; then
exec nu
fi
# get the dir name that current file in
function get_current_dir_name {
_source="${(%):-%x}"