A smarter touch
command — better-touch
automatically creates any missing directories in the path before creating the file, so you don't have to.
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.
-
Download the latest release from the Releases page.
-
Extract the archive.
-
Run the install script:
bash installers/install.sh
This installs the binary to /usr/local/bin/
and installs the man page.
- 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.