Copy the absolute path of a file to your clipboard
ptc is a simple command-line tool designed to copy the absolute path of a given file or directory, directly to your clipboard. It aims to simplify the process of sharing or using file paths by making it a one-step operation.
- Cross-platform support (Windows, macOS, Linux)
- Copies the absolute path of a file to the clipboard
- Simple and easy-to-use command-line interface
- Clone the repository:
git clone https://github.com/marduc812/pathclip.git
- Navigate to the project directory:
cd pathclip - Build the project:
go build
Download the pre-compiled binaries for your operating system from the Releases page.
To copy the absolute path of a file to the clipboard, simply run:
ptc /path/to/fileCopy the content of a file:
ptc -c /path/to/fileFeel free to open issues or submit pull requests. All contributions are welcome!
[0.4] - 18/05/2026
- Running
ptccopies directly the current directory
[0.3] - 10/12/2024
- Added some color
- Added better errors for linux