Show HN: Schwifty – quickly find and reuse previously executed commands

bakkerinho1 pts0 comments

GitHub - vanesterik/schwifty: Command-line interface (CLI) application designed to enhance shell experience by providing an efficient way to search through your command history · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

vanesterik

schwifty

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>4 Commits<br>4 Commits

ui

ui

utils

utils

.gitignore

.gitignore

LICENSE

LICENSE

README.md

README.md

Taskfile.yml

Taskfile.yml

go.mod

go.mod

go.sum

go.sum

main.go

main.go

schwifty.jpg

schwifty.jpg

screenshot.png

screenshot.png

View all files

Repository files navigation

SCHWIFTY

SHWIFTY is a command-line interface (CLI) application designed to enhance shell experience by providing an efficient way to search through your command history. It allows users to quickly find and reuse previously executed commands, improving productivity and workflow in terminal environments.

Motivation

I found myself frequently needing to search through my shell history to find commands I had previously executed - pressing the up arrow key multiple times to find a command I had used before. Using SCHWIFTY, I can easily navigate through my command history, search for specific commands, and execute them without having to remember the exact syntax or location in the history.

There are probably other tools that do the same, but I wanted to create a tool in Go that was simple, fast, and fit my workflow. I also wanted to learn more about Go and the Bubble Tea framework, which is used to build terminal user interfaces.

Name

The name SCHWIFTY is a playful nod to the popular phrase from the animated series Rick and Morty, where Get Schwifty is a memorable line. In this context, SCHWIFTY stands for S earch C ommand H istory W ith I ntelligent F iltering T ools for Y ou, emphasizing the application's purpose of providing an intelligent and efficient way to search through command history.

Installation

To install SCHWIFTY, you can use the following methods:

From Source

Clone the repository:

git clone https://github.com/vanesterik/schwifty.git<br>cd schwifty

Build the application:

go build -o bin/schwifty .

Move the binary to a directory in your PATH:

mv bin/schwifty /usr/local/bin/

Using Go Install

If you have Go installed, you can use go install:

go install github.com/vanesterik/schwifty@latest

This will install the schwifty binary in your Go bin directory. Make sure this directory is in your PATH.

Usage

To use SCHWIFTY, simply run the schwifty command in your terminal. You can then search through your command history and select commands to execute or copy.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Rick and Morty for the inspiration behind the name.

Bubble Tea for the TUI framework used in this project.

About

Command-line interface (CLI) application designed to enhance shell experience by providing an efficient way to search through your command history

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

stars

Watchers

watching

Forks

forks

Report repository

Releases

tags

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Go<br>100.0%

You can’t perform that action at this time.

schwifty search command history through license

Related Articles