https://github.com/blurgyy/tinytools

🛠 A collection of tools that enhance your experience in shell.

https://github.com/blurgyy/tinytools

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • â—‹
    CITATION.cff file
  • ✓
    codemeta.json file
    Found codemeta.json file
  • â—‹
    .zenodo.json file
  • â—‹
    DOI references
  • â—‹
    Academic publication links
  • â—‹
    Committers with academic emails
  • â—‹
    Institutional organization owner
  • â—‹
    JOSS paper metadata
  • â—‹
    Scientific vocabulary similarity
    Low similarity (6.4%) to scientific vocabulary

Keywords

cli rust shell tool
Last synced: 5 months ago · JSON representation

Repository

🛠 A collection of tools that enhance your experience in shell.

Basic Info
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Topics
cli rust shell tool
Created over 4 years ago · Last pushed almost 3 years ago
Metadata Files
Readme

README.md

tinytools

A collection of tools that enhance your experience in shell. This provides an executable named tt, which in turn provides the following utilities (more to be added):

  • bak: Append a tilde (~) to the names of given files/directories.
  • debak: Pop a tilde (~) from the names of given files/directories.
  • gr: Get the nearest git root above current working directory (if it exists).

Installation

Installing with cargo:

shell $ cargo install tinytools

Utilities

bak

Sometimes you want to quickly backup some file, this is typically done by suffixing the file with a tilde (~). When there are multiple files to be renamed, bak helps you to do this at ease:

shell $ alias bak="tt bak" $ touch testfile $ mkdir testdir $ ls testdir/ testfile $ bak testdir testfile renamed "testfile" -> "testfile~" renamed "testdir" -> "testdir~"

bak aborts if the path after appending a tilde exists in the filesystem.

debak

debak is the inverse of bak (see: bak). It does nothing (and aborts) when any of the given path does not end with a tilde.

gr

Sometimes you want to quickly go to nearest git root of current project. Add this shell alias to your shell's initialization script:

shell $ alias cg='cd ${$(tt gr 2>/dev/null):-$PWD}'

Then, call cg to quickly jump from your cwd to git root:

shell $ pwd [...]/tinytools/src/modules $ cg $ pwd [...]/tinytools $ cd - $ pwd [...]/tinytools/src/modules

Owner

  • Name: Gaoyang Zhang
  • Login: blurgyy
  • Kind: user
  • Company: Zhejiang University

GitHub Events

Total
Last Year

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 37
  • Total Committers: 1
  • Avg Commits per committer: 37.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Gaoyang Zhang gy@b****z 37
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cargo 9,218 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 8
  • Total maintainers: 1
crates.io: tinytools

A collection of tools that enhance your experience in shell.

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 9,218 Total
Rankings
Dependent repos count: 29.3%
Dependent packages count: 33.8%
Average: 36.1%
Downloads: 36.3%
Forks count: 37.5%
Stargazers count: 43.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Cargo.lock cargo
  • ansi_term 0.11.0
  • atty 0.2.14
  • bitflags 1.2.1
  • clap 2.33.3
  • heck 0.3.3
  • hermit-abi 0.1.19
  • lazy_static 1.4.0
  • libc 0.2.98
  • proc-macro-error 1.0.4
  • proc-macro-error-attr 1.0.4
  • proc-macro2 1.0.28
  • quote 1.0.9
  • strsim 0.8.0
  • structopt 0.3.22
  • structopt-derive 0.4.15
  • syn 1.0.74
  • textwrap 0.11.0
  • unicode-segmentation 1.8.0
  • unicode-width 0.1.8
  • unicode-xid 0.2.2
  • vec_map 0.8.2
  • version_check 0.9.3
  • winapi 0.3.9
  • winapi-i686-pc-windows-gnu 0.4.0
  • winapi-x86_64-pc-windows-gnu 0.4.0
.github/workflows/release.yml actions
  • actions-rs/cargo v1 composite
  • actions-rs/toolchain v1 composite
  • actions/checkout v2 composite
  • softprops/action-gh-release v1 composite
Cargo.toml cargo