{"id":19787013,"url":"https://github.com/lucaslarson/samefile","last_synced_at":"2026-04-22T05:34:12.627Z","repository":{"id":41826307,"uuid":"358067323","full_name":"LucasLarson/samefile","owner":"LucasLarson","description":"⚖️  a portable, POSIX-compliant implementation of Bash’s `-ef` test, sharing a device and an inode value","archived":false,"fork":false,"pushed_at":"2026-04-21T13:13:01.000Z","size":56,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-21T15:19:34.344Z","etag":null,"topics":["bash-ef","bourne-shell","hacktoberfest","inode","inodes","oh-my-zsh-plugin","ohmyzsh-plugin","posix-compatible","posix-compliance","posix-shell","same-file","same-files","samefile","test-ef","zsh-plugin","zsh-plugins"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucasLarson.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":"license.adoc","code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"LucasLarson"}},"created_at":"2021-04-14T23:18:43.000Z","updated_at":"2025-12-03T23:35:44.000Z","dependencies_parsed_at":"2024-04-23T21:05:57.531Z","dependency_job_id":"23d6e18f-069a-4c0f-8383-86506c0c8f10","html_url":"https://github.com/LucasLarson/samefile","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LucasLarson/samefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fsamefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fsamefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fsamefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fsamefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasLarson","download_url":"https://codeload.github.com/LucasLarson/samefile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasLarson%2Fsamefile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32122757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-ef","bourne-shell","hacktoberfest","inode","inodes","oh-my-zsh-plugin","ohmyzsh-plugin","posix-compatible","posix-compliance","posix-shell","same-file","same-files","samefile","test-ef","zsh-plugin","zsh-plugins"],"created_at":"2024-11-12T06:20:34.995Z","updated_at":"2026-04-22T05:34:12.621Z","avatar_url":"https://github.com/LucasLarson.png","language":"Shell","funding_links":["https://github.com/sponsors/LucasLarson"],"categories":[],"sub_categories":[],"readme":"# samefile\n\n⚖️  a portable, POSIX-compliant implementation of Bash’s `-ef` test\n\n[![AGPL](https://img.shields.io/badge/license-AGPL_3+-blue \"GNU Affero General\nPublic License v3.0 or\nlater\")](https://github.com/LucasLarson/samefile/blob/main/license.adoc)\n[![latest release](https://img.shields.io/github/release/LucasLarson/samefile.svg)](https://github.com/LucasLarson/samefile/releases/latest)\n[![Super-Linter](https://github.com/LucasLarson/samefile/workflows/Super-Linter/badge.svg)](https://github.com/LucasLarson/samefile/actions?query=workflow:\"Super-Linter\")\n\n## Installation\n\n### L337\n\nMake sure the [executable named\n`samefile`](https://github.com/LucasLarson/samefile/blob/main/bin/samefile) in\n`bin/` is either\n\n- moved into a directory in `$PATH`, or\n- added to `$PATH`.\n\n### Oh My Zsh\n\n1. clone the repostory:\n\n```sh\ngit clone --depth 1 https://github.com/LucasLarson/samefile \"${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}\"/plugins/samefile\n```\n\n2. Next, open the `.zshrc` file in your home directory\n2. insert the word ` samefile ` between the parentheses on the line that begins\n   with `plugins=`.\n2. save and close the file, then `source` it with `. \"${HOME}\"/.zshrc`.\n\n## Usage\n\n```sh\n# not this\n[ path/to/some/file -ef path/to/another/file ]\n# and definitely not this\n[[ path/to/some/file -ef path/to/another/file ]]\n\n# but rather this\nsamefile path/to/some/file path/to/another/file\n# or this\nsamefile --verbose path/to/some/file path/to/another/file\n# or this\nsamefile -v path/to/some/file path/to/another/file\n\n# returns a `0` exit status on success and `1` for failure\n# just like `[`, `[[`, and `test`\n```\n\nBash’s `-ef` and `samefile` both check that two files aren’t just similar, but\nare\n\n1. the same exact file and have\n1. the same exact inode values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaslarson%2Fsamefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucaslarson%2Fsamefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucaslarson%2Fsamefile/lists"}