diff --git a/terminal/.config/nushell/config.nu b/terminal/.config/nushell/config.nu index 6413b50..36173e5 100644 --- a/terminal/.config/nushell/config.nu +++ b/terminal/.config/nushell/config.nu @@ -82,7 +82,7 @@ $env.config.keybindings = [ mode: [emacs vi_insert vi_normal] event: { send: ExecuteHostCommand - cmd: "let cmd = (commandline); commandline edit (if $cmd starts-with sudo { $cmd | str replace -r '^sudo ' '' } else { 'sudo ' ++ $cmd });" + cmd: " let cmd = (commandline); commandline edit (if $cmd starts-with sudo { $cmd | str replace -r '^sudo ' '' } else { 'sudo ' ++ $cmd });" } } { @@ -105,7 +105,7 @@ $env.config.keybindings = [ mode: ["emacs", "vi_normal", "vi_insert"] event: { send: executehostcommand - cmd: "zoxide query --interactive" + cmd: " zoxide query --interactive" } } { @@ -115,7 +115,7 @@ $env.config.keybindings = [ mode: [ "vi_normal"] event: { send: executehostcommand - cmd: "zoxide query --interactive" + cmd: " zoxide query --interactive" } } { @@ -125,7 +125,8 @@ $env.config.keybindings = [ mode: ["emacs", "vi_normal", "vi_insert"] event: { send: executehostcommand - cmd: " + # intentional eol space to prevent adding cmd to history + cmd: " let fzf_ctrl_t_command = \$\"fd --type file --hidden | fzf --preview 'bat --color=always --style=full --line-range=:500 {}' \"; let result = nu -l -i -c $fzf_ctrl_t_command; commandline edit --append $result;