https://github.com/rusty-ferris-club/shellclear Skip to content Sign up * Product + Features + Mobile + Actions + Codespaces + Copilot + Packages + Security + Code review + Issues + Discussions + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Skills + GitHub Sponsors + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} rusty-ferris-club / shellclear Public * Notifications * Fork 2 * Star 11 Secure shell history commands License Apache-2.0 license 11 stars 2 forks Star Notifications * Code * Issues 3 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights rusty-ferris-club/shellclear This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 25 branches 11 tags Code * Clone HTTPS GitHub CLI [https://github.com/r] Use Git or checkout with SVN using the web URL. [gh repo clone rusty-] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @kaplanelad kaplanelad Update README.md ... 581240c Aug 25, 2022 Update README.md 581240c Git stats * 72 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .cargo add xtask + ci + coverage test (#11) Jul 10, 2022 .github add github templates (#12) Jul 12, 2022 media repalce image Jul 29, 2022 shellclear bump version 0.4.1 Aug 24, 2022 xtask add xtask + ci + coverage test (#11) Jul 10, 2022 .gitignore add xtask + ci + coverage test (#11) Jul 10, 2022 Cargo.lock bump version 0.4.1 Aug 24, 2022 Cargo.toml add xtask + ci + coverage test (#11) Jul 10, 2022 LICENSE.txt init project Jun 28, 2022 README.md Update README.md Aug 24, 2022 View code [ ] Shellclear Installation Terminal Summary Using Supported Shells Find Sensitive Commands Clear findings : Backup shell history before clear Stash/Pop/Restore [?] External Configuration Validate Config Files Delete Config Folder Ignores Pattern Thanks Copyright README.md Build [shellclear] Show sensitive command summary when open a new terminal Clear sensitive commands from shell history Stash your history command before presentations OR screen sharing --------------------------------------------------------------------- Shellclear The idea behind shellclear is to provide a simple and fast way to secure you shell commands history Installation brew tap rusty-ferris-club/tap && brew install shellclear Or download the binary file from releases page. Terminal Summary Add in shell profile (~/.zshrc / .bash_profile / .bashrc) eval $(shellclear --init-shell) motd Using $ shellclear --help Secure shell commands USAGE: shellclear [OPTIONS] [SUBCOMMAND] OPTIONS: --config-dir Set configuration directory path -h, --help Print help information --init-shell Show sensitive findings summary for MOTD --log Set logging level [default: INFO] [possible values: OFF, TRACE, DEBUG, INFO, WARN, ERROR] --no-banner Don't show the banner -V, --version Print version information SUBCOMMANDS: config Create custom configuration find Find sensitive commands help Print this message or the help of the given subcommand(s) restore Restore backup history file stash Stash history file Supported Shells * bash * zshrc * fish Find Sensitive Commands Sensitive data can be stored in your history file when export a token of something or running a script with token. $ shellclear find --format table find Clear findings : $ shellclear clear Backup shell history before clear $ shellclear clear --backup Stash/Pop/Restore You can stash your history shell by running the command: $ shellclear stash Now your history shell is clear, to bring back your history run the command: $ shellclear stash pop You can also restore your history backup file by running the command: $ shellclear stash restore [?] External Configuration Create custom configuration by running the command $ shellclear config Config command will create: 1. Custom pattern template for adding a custom risky patterns 2. Ignore file to allows you ignore specific pattern Validate Config Files Validate syntax file $ shellclear config validate Delete Config Folder Validate syntax file $ shellclear config delete Ignores Pattern Manage pattern ignores $ shellclear config ignores Thanks To all Contributors - you make this happen, thanks! Copyright Copyright (c) 2022 @kaplanelad. See LICENSE for further details. About Secure shell history commands Topics shell bash rust security security-tools Resources Readme License Apache-2.0 license Stars 11 stars Watchers 2 watching Forks 2 forks Releases 11 v0.4.1 Latest Aug 24, 2022 + 10 releases Packages 0 No packages published Contributors 2 * @kaplanelad kaplanelad Elad Kaplan * @boaz-quotient boaz-quotient Languages * Rust 100.0% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.