Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivanmisic/bashpast

Bashpast bookmarks your commands for easier repeated invocation
https://github.com/ivanmisic/bashpast

bash command-line-tool linux

Last synced: 2 months ago
JSON representation

Bashpast bookmarks your commands for easier repeated invocation

Awesome Lists containing this project

README

        

# Bashpast
### Bashpast bookmarks your commands for easier repeated invocation

* * *

## Install

1. git clone [email protected]:ivanmisic/bashpast.git
2. cd bashpast && make
3. append in **~/.bashrc** file the following line `source ~/.local/bin/bashpast.sh`

## Shell Commands

bp s - Saves the last command in history as "bookmark_name"
bp e - Execute the command associated with "bookmark_name"
bp d - Deletes the bookmark with the "bookmark_name"
bp l - Lists all available bookmarks

## Example Usage

Save a bookmark

$ echo "I will bookmark this command"
$ I will bookmark this command
$ bp s echo

Execute a bookmarked command

$ bp e echo
$ I will bookmark this command

List all bookmarks

$ bp l
$ echo echo "I will bookmark this command"