Code Monkey home page Code Monkey logo

bintools-rs's Introduction

bintools

Replacement for unix commands on windows or macos. Written in pure rust, with standard library only as the goal. This project will be extended over time.

Currently implemented:

Command Arguments Description
touch File/Dir* Create an empty file or directory.
rm File/Dir* Delete an file or folder.
  • Arguments marked with * (like File*) means that it accepts multiple arguments of that type.
  • rm currently isn't a drop in replacement and mostly serves for basic deleting. It currently doesn't have an argument for recursive deletion, this will be added later, currently it always removes folders recursively.

Next up:

Command Arguments Description
ls #argument List files and folders in the current directory.
ls -l List the files as actual list.
ls -a List hidden files and folders too.
ls -F Add "/" at the end of folder names.
ls -t Sort files and folders by modified time.
ll Shorthand for ls -l
cp #argument source destination Copy a file or folder from one place to another.
cp -f, --force If the file already exists and can't be opened try to force it.
cp -i, --interactive Ask before overwriting existing files.
cp -n, --no-clobber Don't overwrite already existing files.

Overwriting PowerShell preset aliases

Find the corresponding profile.ps1 of your shell. If the actual file name shown on the commandline starts with 'Microsoft' just ignore it and go to the parent folder of the file.

echo $profile

example1

Edit the profile.ps1 with your favorite editor (Notepad is enough) and add the following line, replacing 'rm' with the preset you want to overwrite and 'rm.exe' with the thing you want it overwritten with. The stuff aftet that is for bypassing the restriction on overwriting presets.

Set-Alias 'rm 'rm.exe' -Force -Option 'Constant', 'AllScope'

example2

You're done as long as you saved the file. From now on everytime you start that PowerShell instance the preset command will be overwritten.

bintools-rs's People

Contributors

ekqrcalamity avatar

Watchers

 avatar

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.