Skip to content

fatalus69/better-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BETTER-TOUCH

A smarter touch commandbetter-touch automatically creates any missing directories in the path before creating the file, so you don't have to.

Usage

better-touch [OPTIONS] [FILENAME]...

Option Description
-h, --help Show this help message and exit
-V, --version Show the current version
-v, --verbose Enable verbose output
-a, --access-time Set the access time of the file to now
-t [time], --time [time] Set access time using ISO 8601 format (planned feature)
-c, --no-create Don't create the file if it doesn't exist

Caution

The --time option is currently not implemented, due to language-level limitations. It may be added in a future update.

Installation

  1. Download the latest release from the Releases page.

  2. Extract the archive.

  3. Run the install script:

bash installers/install.sh

This installs the binary to /usr/local/bin/ and installs the man page.

Development

  • Clone the project and build the binary
bash build.sh
  • To build the release version simply run
bash build.sh --release

Note

This is a hobby-project and may contain bugs or incomplete features.

About

a smarter touch that creates directories recursively

Topics

Resources

License

Stars

Watchers

Forks