{"id":17016876,"url":"https://github.com/nnbnh/bsymlink","last_synced_at":"2026-04-18T14:35:00.094Z","repository":{"id":114416053,"uuid":"332630927","full_name":"NNBnh/bsymlink","owner":"NNBnh","description":"🔗 Batch symlink tool that SuperB","archived":false,"fork":false,"pushed_at":"2022-07-02T03:54:16.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T15:26:30.868Z","etag":null,"topics":["basher","bpkg","cli","dotfiles","posix","symlink","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NNBnh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.buymeacoffee.com/nnbnh","https://nhantien.momo.vn/nnb"]}},"created_at":"2021-01-25T04:33:03.000Z","updated_at":"2022-10-23T09:39:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf9fc135-d6aa-473c-80bc-71170c957ba2","html_url":"https://github.com/NNBnh/bsymlink","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/NNBnh/bsymlink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fbsymlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fbsymlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fbsymlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fbsymlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NNBnh","download_url":"https://codeload.github.com/NNBnh/bsymlink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fbsymlink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31972482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["basher","bpkg","cli","dotfiles","posix","symlink","terminal"],"created_at":"2024-10-14T06:34:52.624Z","updated_at":"2026-04-18T14:35:00.052Z","avatar_url":"https://github.com/NNBnh.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/nnbnh","https://nhantien.momo.vn/nnb"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ccode\u003ebsymlink\u003c/code\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003eBatch symlink tool that \u003ci\u003eSuperB\u003c/i\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/NNBnh/bsymlink/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/NNBnh/bsymlink?labelColor=073551\u0026color=4EAA25\u0026style=for-the-badge\" alt=\"License: GPL-3.0\"\u003e\u003c/a\u003e \u003ca href=\"https://gist.github.com/NNBnh/9ef453aba3efce26046e0d3119dab5a7#development-completed\"\u003e\u003cimg src=\"https://img.shields.io/badge/development-completed-%234EAA25.svg?labelColor=073551\u0026style=for-the-badge\u0026logoColor=FFFFFF\" alt=\"Development completed\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## 💡 About\n\n`bsymlink` is a *SuperB* batch symlink tool written in  [`portable sh`](https://github.com/dylanaraps/pure-sh-bible). But unlike [**Stow**](https://www.gnu.org/software/stow), it can handle conflict files like move it to the trash or delete it.\n\n## 🚀 Setup\n\n### 🧾 Dependencies\n\n- [Unix commands](https://en.wikipedia.org/wiki/List_of_Unix_commands) to process\n\n### 📥 Installation\n\n#### 🔧 Manually\n\nOption 1: using `curl`\n\n```sh\ncurl https://raw.githubusercontent.com/NNBnh/bsymlink/main/bin/bsymlink \u003e ~/.local/bin/bsymlink\nchmod +x ~/.local/bin/bsymlink\n```\n\nOption 2: using `git`\n\n```sh\ngit clone https://github.com/NNBnh/bsymlink.git ~/.local/share/bsymlink\nln -s ~/.local/share/bsymlink/bin/bsymlink ~/.local/bin/bsymlink\n```\n\n#### 📦 Package manager\n\nFor [Bpkg](https://github.com/bpkg/bpkg) user:\n\n```sh\nbpkg install NNBnh/bsymlink\n```\n\nFor [Basher](https://github.com/basherpm/basher) user:\n\n```sh\nbasher install NNBnh/bsymlink\n```\n\n\u003e **Note** *If you can and want to port Bsymlink to other package managers, feel free to do so.*\n\n## ⌨️ Usage\n\nRun `bsymlink` in the terminal:\n\n```sh\nbsymlink path/to/directory path/to/target [path/to/trash]\n```\n\n## ⚙️ Configuration\n\nThis is the default handle conflict command:\n\n```sh\nBSYMLINK_HANDLE=\"handle_conflict \\\"\\$target\\\"\"\n```\n\nit's use this builtin `handle_conflict` function:\n\n```sh\nBSYMLINK_TRASH_PATH=\"${BSYMLINK_TRASH_PATH:-${XDG_DATA_HOME:-$HOME/.local/share}/Trash/files}\"\n\nhandle_conflict() {\n\tmkdir -p \"$TRASH_PATH\"\n\trm -rf \"$TRASH_PATH/$(basename \"$target\")\" 2\u003e\u0026-\n\tmv -f \"$target\" \"$TRASH_PATH/\"\n}\n```\n\n\u003e **Note** *The default trash's path is `~/.local/share/Trash/files`*\n\nYou can change it through environment variables: `export BSYMLINK_HANDLE=\"\u003ccommand\u003e\"`\n\n\u003e **Note** *Keep in mind that the `\u003cmethod\u003e` will be run through `eval` (e.g: `// =\u003e /`)*\n\n**Examples:**\n\nDelete conflict files:\n\n```sh\nBSYMLINK_HANDLE=\"rm -rf \\\"\\$target\\\"\"\n```\n\nUsing [Trash-CLI](https://github.com/andreafrancia/trash-cli):\n\n```sh\nBSYMLINK_HANDLE=\"trash \\\"\\$target\\\"\"\n```\n\n## 💌 Credits\n\nSpecial thanks to:\n- [**Stow**](https://www.gnu.org/software/stow) by [GNU](https://www.gnu.org)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n---\n\n\u003e \u003ch1 align=\"center\"\u003eMade with ❤️ by \u003ca href=\"https://github.com/NNBnh\"\u003e\u003ci\u003eNNB\u003c/i\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003e\n\u003e \u003cp align=\"center\"\u003e\u003ca href=\"https://www.buymeacoffee.com/nnbnh\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee%20-%23F7CA88.svg?logo=buy-me-a-coffee\u0026logoColor=333333\u0026style=for-the-badge\" alt=\"Buy Me a Coffee\"\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnbnh%2Fbsymlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnbnh%2Fbsymlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnbnh%2Fbsymlink/lists"}