Skip to content

John-Jkar/Linux-search-and-save-important-comands-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Local Command Finder

grp is a lightweight offline command searcher and clipboard tool that helps you store, browse, and copy useful shell commands quickly — all from your terminal. It uses fzf for fuzzy searching and jq for handling a JSON-based command database.

✨ Features

🔍 Fuzzy search your local collection of commands

📋 Copy commands directly to your clipboard

➕ Add new commands interactively

📃 List all stored commands in a readable table

🧱 Works entirely offline — no internet required

🐧 Supports Linux, macOS, and WSL

SETUP

Move script to PATH

mkdir -p ~/.local/bin mv grp.sh ~/.local/bin/ chmod +x ~/.local/bin/grp.sh

Create command database

echo "[]" > ~/commands.json

Install deps

sudo apt install jq fzf xclip -y

Command Description
./grp.sh Search & copy commands
./grp.sh --add Add a new command
grp.sh --list View all commands

Example

./grp.sh --add Title: Show IP Command: ip addr show Tags: network

./grp.sh → Search, press Enter to copy

About

I created an offline script that enables you to save your frequently used commands in a json file and you can access them anytime instead of googling everytime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages