local wez = require 'wezterm' return function ( cfg ) local success, stdout, stderr = wez.run_child_process { 'command', '-v', 'nu' } if success then cfg.default_prog = { 'nu', '--login', } else wez.log_warn "nu shell not found, falling back to default shell" end end