diff --git a/.gitmodules b/.gitmodules index d1184fa..859b01e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "dot_local/share/docs/external_waybar.wiki"] path = dot_local/share/docs/external_waybar.wiki url = https://github.com/Alexays/Waybar.wiki.git +[submodule "dot_local/share/docs/external_nushell-book"] + path = dot_local/share/docs/external_nushell-book + url = https://github.com/nushell/nushell.github.io.git diff --git a/CLAUDE.md b/CLAUDE.md index 4c45cf0..f96dcf1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -64,6 +64,7 @@ This copies built theme artifacts into the appropriate `dot_config/*/themes/` di | chezmoi | `~/.local/share/docs/chezmoi-docs/` | | Hyprland | `~/.local/share/docs/hyprland.wiki/` | | Waybar | `~/.local/share/docs/waybar.wiki/` (also `man 5 waybar`) | +| Nushell | `~/.local/share/docs/nushell-book/` | | Ghostty | `/usr/share/ghostty` | ## Commit convention diff --git a/dot_config/nushell/config.nu.tmpl b/dot_config/nushell/config.nu.tmpl index 808a3ce..91484f6 100644 --- a/dot_config/nushell/config.nu.tmpl +++ b/dot_config/nushell/config.nu.tmpl @@ -30,6 +30,19 @@ $env.config = { completer: $carapace_completer } } + + keybindings: [ + { + name: insert_last_arg + modifier: alt + keycode: char_. + mode: [vi_insert, emacs] + event: { + send: executehostcommand + cmd: "commandline edit --insert (history | last | split words | last)" + } + } + ] } plugin use gstat diff --git a/dot_local/share/docs/external_nushell-book b/dot_local/share/docs/external_nushell-book new file mode 160000 index 0000000..6e1900f --- /dev/null +++ b/dot_local/share/docs/external_nushell-book @@ -0,0 +1 @@ +Subproject commit 6e1900ffe2281c6c3ee4c7d82a32301074325033