Added shell config for nushell

This commit is contained in:
2025-12-21 23:26:15 +00:00
parent 6f6359f015
commit 3662ac1e2c

13
lua/config/shell.lua Normal file
View File

@@ -0,0 +1,13 @@
local shell_path = os.getenv("SHELL") or ""
if (vim.fn.executable("nu") == 1) and shell_path:find("nu") then
vim.opt.sh = "nu"
vim.opt.shelltemp = false
vim.opt.shellredir = "out+err> %s"
vim.opt.shellcmdflag = "--stdin --no-newline -c"
vim.opt.shellxescape = ""
vim.opt.shellxquote = ""
vim.opt.shellquote = ""
vim.opt.shellpipe =
"| complete | update stderr { ansi strip } | tee { get stderr | save --force --raw %s } | into record"
end