Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Magnushhoie/bash_search
Blazingly fast and interactive file search scripts, based on FZF and BASH.
https://github.com/Magnushhoie/bash_search
Last synced: 12 days ago
JSON representation
Blazingly fast and interactive file search scripts, based on FZF and BASH.
- Host: GitHub
- URL: https://github.com/Magnushhoie/bash_search
- Owner: Magnushhoie
- Created: 2020-04-15T01:56:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T13:58:20.000Z (over 2 years ago)
- Last Synced: 2024-08-02T05:11:33.402Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 1.65 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - bash_search - Blazingly fast and interactive file search scripts, based on FZF and BASH. (Shell)
README
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
bash_search
Blazingly fast and interactive file search scripts, based on FZF and BASH.
Sourced from https://github.com/junegunn/fzf/wiki/examples
## Installation
Sets up notes directory and adds aliases to ~/.bash_profile or ~/.zshrc.
```bash
git clone https://github.com/Magnushhoie/bash_search
cd bash_search
bash setup.sh
```## Documentation
Commands are primarily sourced from https://github.com/junegunn/fzf/wiki/examples, with minor modifications.```bash
$ f_helpFZF terminal shortcuts:
Control + R search bash history
Control + T search files
Escape + C jump to folderfunction f_help () # Show list of commands
function f_open() # Open the selected file. Hotkeys CTRL+O (open) or CTRL+E ($EDITOR)
function f_search () # Search all lines in all files, recursively
function f_file () # Find in file, preview contents
function f_folder () # Search folder names and cd
function f_view () # View files in folder, preview content and open in vim
function f_size () # Show cumulative file size for each file extension in folder, n-levels (default 4) deep
function f_hist () # Search BASH History: Fuzzy search bash history
function f_cd () # Interactive cd with fzf
function f_git_log () # Interactive git log (AWESOME)
function f_git_branch() # checkout git branch/tag, with a preview showing the commits between the tag/branch and HEAD
function f_kill () # Interactively kill process
function f_man () # Search bash manual
function f_pdf () # Search all PDFs in folder, recursively
function f_vim() # Quick access files with fasd
function f_chrome() # Search chrome bookmarks
```## Requirements
Automatically installed using brew in setup.sh
```bash
brew install coreutils fd bat ripgrep rga fasd vim the_silver_searcher
```## Compatibility
Compatible with zsh. Tested on MacOS Mojave and Ubuntu 21.04.## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)[contributors-shield]: https://img.shields.io/github/contributors/Magnushhoie/bash_search.svg?style=for-the-badge
[contributors-url]: https://github.com/Magnushhoie/bash_search/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/Magnushhoie/bash_search.svg?style=for-the-badge
[forks-url]: https://github.com/Magnushhoie/bash_search/network/members
[stars-shield]: https://img.shields.io/github/stars/Magnushhoie/bash_search.svg?style=for-the-badge
[stars-url]: https://github.com/Magnushhoie/bash_search/stargazers
[issues-shield]: https://img.shields.io/github/issues/Magnushhoie/bash_search.svg?style=for-the-badge
[issues-url]: https://github.com/Magnushhoie/bash_search/issues
[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge
[license-url]: https://github.com/Magnushhoie/bash_search/blob/master/LICENSE.txt