Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nushell-prophet/nu-cmd-stack
scroll through the list of Nushell commands using `ctrl+alt+j/k` shortcuts
https://github.com/nushell-prophet/nu-cmd-stack
Last synced: 3 months ago
JSON representation
scroll through the list of Nushell commands using `ctrl+alt+j/k` shortcuts
- Host: GitHub
- URL: https://github.com/nushell-prophet/nu-cmd-stack
- Owner: nushell-prophet
- License: unlicense
- Created: 2024-08-16T13:26:15.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T15:39:51.000Z (4 months ago)
- Last Synced: 2024-08-19T18:16:44.863Z (4 months ago)
- Language: Nushell
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - nu-cmd-stack
README
# nu-cmd-stack (cmd-stack)
## Quick start
```nushel no-run
> git clone https://github.com/nushell-prophet/nu-cmd-stack; cd nu-cmd-stack
> use cmd-stack
```## Demo
https://github.com/user-attachments/assets/862f2eb7-0635-429a-99c4-d3f5ec8e8a7d
[(high res youtube)](https://youtu.be/wBMm1bFlbaU)
## Examples
```nushell no-run
# Initialize `cmd-stack` with the list of 3 commands.
# After executing it will suggest you to add two shortcuts. Execute the suggestion.
> ['print "this"' 'print "that"' "# check ls\nls"] | cmd-stack init# Scroll through the commands using `ctrl + alt + j/k`
``````nushell no-run
# Here we fill `cmd-stack` with the commands from `demo.nu`.
# We divide commands here by empty lines
> open demo.nu | split row "\n\n" | skip | cmd-stack init
``````nushell no-run
# Here we put previous session commands into `cmd-stack`
> let prev_session_id = history -l | last 100 | get session_id | uniq | last 2 | first
> history -l | where session_id == $prev_session_id | get command | cmd-stack init
```