Giter Club home page Giter Club logo

danny-duck / bin_chicken Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 21 KB

๐Ÿ—‘๐Ÿ” Bin Chicken is a command line application written in the Rust programming language. It is designed to be a safer alternative to the rm command in Unix-like operating systems. Instead of permanently deleting files, Bin Chicken moves them to the system bin, allowing you to recover accidentally deleted files.

Rust 100.00%
command-line-tool file-managment rust trash recycle-bin backups file-deletion unix

bin_chicken's Introduction

Bin Chicken ๐Ÿ—‘๏ธ๐Ÿ”

Bin Chicken is a command line application written in the Rust programming language. It is designed to be a safer alternative to the rm command in Unix-like operating systems. Instead of permanently deleting files, Bin Chicken moves them to the system bin. This allows you to recover accidentally deleted files, while still providing a way to clean up your file system.

Installing Bin Chicken

To install Bin Chicken, you will need to have the Rust programming language installed on your system. You can check if you have Rust installed by running the following command:

rustc --version

If you don't have Rust installed, you can follow the instructions on the Rust website to install it.

Once you have Rust installed, you can install Bin Chicken by running the following command:

cargo install bin_chicken

Using Bin Chicken

To use Bin Chicken, simply pass it the path of the file or directory you want to move to the bin. For example, if you want to move the file my_file.txt to the bin, you would run the following command:

bin_chicken my_file.txt

If you want to use Bin Chicken as a drop-in replacement for rm, you can create an alias by adding the following line to your ~/.bashrc or ~/.zshrc file:

alias rm="bin_chicken"

This will allow you to use rm as you normally would, but it will actually run Bin Chicken instead, moving the files to the bin instead of permanently deleting them.

Limitations

Currently, Bin Chicken is MacOS only and does not support wildcard characters such as * for matching multiple files or directories. You will need to specify each path individually.

TODO

  • Add support for undoing the last command
  • Add support for * wildcards
  • Add support for other platforms

Contributing to Bin Chicken

If you are interested in contributing to Bin Chicken, we would love to have your help! You can start by checking out the open issues on our GitHub repository to see if there is anything you can help with. You can also suggest new features or improvements by opening a new issue.

To contribute code to Bin Chicken, you will need to fork the repository and create a new branch for your changes. Once you have made your changes, you can submit a pull request for them to be reviewed and merged into the main codebase.

License

Bin Chicken is released under the MIT License.

bin_chicken's People

Contributors

work-in-progress-danny avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

waldirborbajr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.