Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bashhub-client
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ryan Caloras
  • bashhub-client
  • Wiki
  • Usage

Usage · Changes

Page history
Added a sweet gif and arrange some more stuff. authored May 20, 2015 by Ryan Caloras's avatar Ryan Caloras
Show whitespace changes
Inline Side-by-side
Usage.md
View page @ e15a1151
...@@ -5,35 +5,53 @@ Bashhub can be accessed from the command line in a couple ways: ...@@ -5,35 +5,53 @@ Bashhub can be accessed from the command line in a couple ways:
- `bashhub` for everything else - `bashhub` for everything else
It also provides a key binding of `ctrl + b` for quickly dropping into interactive search. It also provides a key binding of `ctrl + b` for quickly dropping into interactive search.
##Search
You can search through your commands in a lot of different ways. Check `bh --help` for more specifics. By default `bh` will output the most recently used unique commands to standard out. Adding the `-i` argument to any `bh` search will make it **interactive**. There are also several arguments to pass to filter, query, and get more specific about your searches!
##Searching
You can search through your commands in a lot of different ways. Check `bh --help` for more specifics.
Here's some examples: ##Interactive Search
One of the most useful features is interactive search which is accessed via `bh -i` or `ctrl+b`. This is similar to reverse search i.e. `ctrl + r`. Interactive search drops you into a small menu where you can select a command to run on the command line.
###Directory based searching Enter interactive search for all the rsync commands executed in this directory
```bash
$ bh -i -d
(bashhub-i-search): rsync
```
Here's an example of interactive search followed by bashhub status.
![gif](http://i.imgur.com/fCIYlfO.gif)
All the files you vim'd in this current directory. ##Searching Examples
The last 100 commands you executed anywhere. (100 is default limit without `-n`)
```bash ```bash
$ bh -d "vim" $ bh
``` ```
###System based searching The last 20 files I've grep'd.
```bash
The last 10 curl commands you produced on this system $ bh -n 20 "grep"
```
Find that wget command with interactive search to execute it again :P
```bash
$ bh -i "wget github"
```
###Directory based searching
The last commands you executed in this directory.
```bash ```bash
$ bh -sys -n 10 "curl" $ bh -d
```
The last 10 things you vim'd in this directory
```bash
$ bh -d -n 10 "vim"
``` ```
##Interactive Search ###System based searching
One of the most useful features is interactive search which is accessed via `bh -i` or `ctrl+b`. This is similar to reverse search i.e. `ctrl + r`. Interactive search drops you into a small menu where you can select a command to run on the command line.
The last 10 curl commands you produced on this system
Enter interactive search for all the rsync commands executed in this directory
```bash ```bash
$ bh -i -d $ bh -sys -n 10 "curl"
(bashhub-i-search): rsync
``` ```
###How search results are ordered ###How search results are ordered
......
Clone repository
  • FAQ
  • Home
  • Install
  • Security and Privacy
  • Usage