{"id":15113674,"url":"https://github.com/okomestudio/symlinkto","last_synced_at":"2026-02-21T10:02:48.799Z","repository":{"id":256899007,"uuid":"856758336","full_name":"okomestudio/symlinkto","owner":"okomestudio","description":"Create symlinks to version-controlled files.","archived":false,"fork":false,"pushed_at":"2025-03-21T10:18:47.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T18:16:09.505Z","etag":null,"topics":["bash","dotfiles","shell","symlink-management"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okomestudio.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}},"created_at":"2024-09-13T06:38:03.000Z","updated_at":"2025-03-22T22:07:44.000Z","dependencies_parsed_at":"2025-03-18T20:39:43.776Z","dependency_job_id":null,"html_url":"https://github.com/okomestudio/symlinkto","commit_stats":null,"previous_names":["okomestudio/symlinkto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/okomestudio/symlinkto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okomestudio%2Fsymlinkto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okomestudio%2Fsymlinkto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okomestudio%2Fsymlinkto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okomestudio%2Fsymlinkto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okomestudio","download_url":"https://codeload.github.com/okomestudio/symlinkto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okomestudio%2Fsymlinkto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","dotfiles","shell","symlink-management"],"created_at":"2024-09-26T01:22:04.002Z","updated_at":"2026-02-21T10:02:48.774Z","avatar_url":"https://github.com/okomestudio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# symlinkto\n\nCreate symlinks to version-controlled files.\n\n## Install\n\n``` shellsession\n$ make\n```\n\nThis will install the script `symlinkto` in `$HOME/.local/bin`.\n\n## Usage\n\nLet us first describe what we want to achieve.\n\nConsider a `$HOME` (`~`) directory tree as follows:\n\n``` text\n~/\n└── github.com/\n    └── okomestudio/\n        └── symlinkto/\n```\n\nIn these directories, we want to have three files, `.bashrc`, `.gitconfig`, and\n`.dir-locals.el`:\n\n``` text\n~/\n├── .bashrc\n└── github.com/\n    ├── .gitconfig\n    └── okomestudio/\n        └── symlinkto/\n            └── .dir-locals.el\n```\n\nInstead of creating files there, we want to put them under version control, e.g., with a\n\"dotfiles\" Git repo, and have symlinks pointing to them. Say we have such a\nversion-controlled repository at `~/github.com/okomestudio/dotfiles`:\n\n\n``` text\n~/\n└── github.com/\n    └── okomestudio/\n        └── dotfiles/\n            ├── .bashrc\n            └── github.com/\n                ├── .gitconfig\n                └── okomestudio/\n                    └── symlinkto/\n                        └── .dir-locals.el\n```\n\nIn this case, we set `SYMLINKTO_TREE` to `~/github.com/okomestudio/dotfiles`\n\n``` shell\nexport SYMLINKTO_TREE=~/github.com/okomestudio/dotfiles\n```\n\nin one of the shell startup files (e.g., `.bashrc`) (or in `.envrc` of `direnv`).\n\nThen, after running `symlinkto`, the following symlinks are created:\n\n``` text\n~/\n├── .bashrc -\u003e $SYMLINKTO_TREE/.bashrc\n└── github.com/\n    ├── .gitconfig -\u003e $SYMLINKTO_TREE/github.com/.gitconfig\n    └── okomestudio/\n        └── symlinkto/\n            └── .dir-locals.el -\u003e $SYMLINKTO_TREE/github.com/symlinkto/.dir-locals.el\n```\n\nThere you have it. This is what `symlinkto` is for.\n\n### Running symlinkto\n\nThe `symlinkto` shell command behaves differently based on the current directory.\n\n``` shellsession\n$ symlinkto\n... for each symlink candidate, it prompts for a user action ...\n```\n\nWhen the current directory is in or under `SYMLINKTO_TREE`, all the symlink candidates are\nrecursively searched for in the subdirectories, and for each, `symlinkto` prompts the user\nfor an action (i.e., create, delete, or skip).\n\nWhen the current directory is outside `SYMLINKTO_TREE`, `symlinkto` recursively searches\nfor relevant symlink candidates in or under the current directory, and for each candidate\nfound, it prompts the user for an action (i.e., create, delete, or skip).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokomestudio%2Fsymlinkto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokomestudio%2Fsymlinkto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokomestudio%2Fsymlinkto/lists"}