Skip to content

Bashpast bookmarks your commands for easier repeated invocation

License

Notifications You must be signed in to change notification settings

ivanmisic/bashpast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <bookmark_name> - Saves the last command in history as "bookmark_name"
bp e <bookmark_name> - Execute the command associated with "bookmark_name"
bp d <bookmark_name> - 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"

About

Bashpast bookmarks your commands for easier repeated invocation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published