All Projects → Hyde46 → hoard

Hyde46 / hoard

Licence: MIT License
cli command organizer written in rust

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to hoard

Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+6128.17%)
Mutual labels:  zsh, fish, command-line-tool
Powerline Go
A beautiful and useful low-latency prompt for your shell, written in go
Stars: ✭ 2,299 (+3138.03%)
Mutual labels:  zsh, fish
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+18194.37%)
Mutual labels:  zsh, fish
Zsh Vi Mode
💻 A better and friendly vi(vim) mode plugin for ZSH.
Stars: ✭ 181 (+154.93%)
Mutual labels:  zsh, command-line-tool
Gh
Easily manage your local git repos
Stars: ✭ 156 (+119.72%)
Mutual labels:  zsh, fish
Enhancd
🚀 A next-generation cd command with your interactive filter
Stars: ✭ 2,049 (+2785.92%)
Mutual labels:  zsh, command-line-tool
Gitmux
💻 Git in your tmux status bar
Stars: ✭ 180 (+153.52%)
Mutual labels:  zsh, fish
Dotfiles
If there is a shell, there is a way!
Stars: ✭ 112 (+57.75%)
Mutual labels:  zsh, fish
carapace-bin
multi-shell multi-command argument completer
Stars: ✭ 42 (-40.85%)
Mutual labels:  zsh, fish
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (+235.21%)
Mutual labels:  zsh, fish
Up
Quickly navigate to a parent directory via tab-completion.
Stars: ✭ 126 (+77.46%)
Mutual labels:  zsh, fish
config
Fig's integrations with bash, zsh, fish, ssh, and tmux. Also contains Fig's installation and update scripts. Finally, this repo is the root of the .fig folder that is installed on your computer when you download Fig!
Stars: ✭ 44 (-38.03%)
Mutual labels:  zsh, fish
Xxh
🚀 Bring your favorite shell wherever you go through the ssh.
Stars: ✭ 2,559 (+3504.23%)
Mutual labels:  zsh, fish
Z.lua
⚡ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+2947.89%)
Mutual labels:  zsh, fish
Dotfiles
Dotfiles
Stars: ✭ 117 (+64.79%)
Mutual labels:  zsh, command
Kafkactl
Command Line Tool for managing Apache Kafka
Stars: ✭ 177 (+149.3%)
Mutual labels:  zsh, fish
Fzf
🌸 A command-line fuzzy finder
Stars: ✭ 40,965 (+57597.18%)
Mutual labels:  zsh, fish
Forgit
💤 A utility tool powered by fzf for using git interactively.
Stars: ✭ 1,823 (+2467.61%)
Mutual labels:  zsh, fish
Shellder
🐚 Featured zsh/fish shell theme
Stars: ✭ 192 (+170.42%)
Mutual labels:  zsh, fish
Starship
☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: ✭ 20,504 (+28778.87%)
Mutual labels:  zsh, fish

Crates.io version Crates.io version Crates.io version

command organizer tool to hoard all your precious commands 💎🐉

Example usage

What is a command organizer?

A command organizer lets you save commands that you often use, but are too complicated or long to remember. For every hoarded command, hoard saves

  • the command ( parameterized with a customizable token, default # )
  • name
  • description
  • namespace where it lives in
  • tags ( Optional )

If you get lost in your massive command history, and can't find for example a specific docker command out of thousand docker commands you've already ran, just hoard it. With a name and description it will be much easier to find again. When you look for that command again a month later, take a look at your hoarded commands.

hoard is not supposed to replace shell history finder like fzf atuin or similar utilities. It rather should be used in conjunction with them.

💌 Table of contents

📦 Install

From source

It's best to use rustup to get setup with a Rust toolchain, then you can run:

cargo install hoard-rs

Or build it yourself:

cargo build --release

Find the binaries in ./target/release/hoard Move it to wherever you need it ( Like /usr/local/bin/hoard )

Linux

Tested on:

  • Ubuntu

Install hoard by running

./install.sh

If you are running fish shell

LATEST_RELEASE=1.0.0 ./install.fish

Brew on MacOS

brew tap Hyde46/hoard
brew install hoard

Install Shell plugin

Install hoard as a plugin to enable autocomplete. Depending on your shell, run one of the following commands. To keep it installed for your next shell session, add the source command with an absolute path to your .bashrc or copy-paste the plugins content to your .bashrc.

bash

source src/shell/hoard.bash

zsh

source src/shell/hoard.zsh

fish

source src/shell/hoard.fish

🤸 Usage

Save a new command

hoard new

If a parameter is not known when saving the command, put a # ( Or your customized token from your ~/.config/hoard/config.yml )

Delete a command

hoard remove <name>

Delete all commands in a namespace

hoard remove_namespace <namespace_name>

Edit a command

hoard edit <name>

Search through command trove

<Ctrl-h>

Or alternatively, if not installed as a plugin, the interactive search can still be performed, though without autocomplete. This assumes the user to copy the command by mouse from the UI

hoard list

When running hoard list as a shell plugin and selecting a parameterized command, hoard will ask for all missing parameters to input before sending the complete command to your shell input.

Import other trove files from trove.yml or urls pointing to a trove.yml file

hoard import /path/to/trove.yml

or

hoard import https://troves.com/new_trove.yml

Export trove file

hoard export /path/to/exported/trove.yml

Hoard list shortcuts

Show list of commands in the GUI

<F1>

Next item in command list

<Ctrl-N> / <Down-Arrow>

Previous item in command list

<Ctrl-P> / <Ctrl-Y> / <Up-Arrow>

Next namespace tab

<Ctrl-L> / <Right-Arrow>

Previous namespace tab

<Ctrl-H> / <Left-Arrow>

Select command

<Enter>

Quit

<Esc> / <Ctrl-D> / <Ctrl-C> / <Ctrl-G>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].