{"id":24684953,"url":"https://github.com/xfgusta/execdir","last_synced_at":"2025-10-08T14:30:44.808Z","repository":{"id":39168267,"uuid":"505605669","full_name":"xfgusta/execdir","owner":"xfgusta","description":"Execute a command in a specific directory","archived":false,"fork":false,"pushed_at":"2022-09-03T14:26:28.000Z","size":44,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-08T05:00:42.863Z","etag":null,"topics":["aliases","c","cli","command","directory","exec","execute-command","path","run-command","shell","system","working-directory"],"latest_commit_sha":null,"homepage":"","language":"C","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/xfgusta.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}},"created_at":"2022-06-20T21:40:01.000Z","updated_at":"2022-07-23T02:27:58.000Z","dependencies_parsed_at":"2023-01-17T18:15:23.609Z","dependency_job_id":null,"html_url":"https://github.com/xfgusta/execdir","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgusta%2Fexecdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgusta%2Fexecdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgusta%2Fexecdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfgusta%2Fexecdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xfgusta","download_url":"https://codeload.github.com/xfgusta/execdir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235718832,"owners_count":19034670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aliases","c","cli","command","directory","exec","execute-command","path","run-command","shell","system","working-directory"],"created_at":"2025-01-26T15:17:07.293Z","updated_at":"2025-10-08T14:30:39.427Z","avatar_url":"https://github.com/xfgusta.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# execdir\n\nA tool that lets you run a command in a specific directory. It supports shell commands and path aliases. **execdir** will try to get an alias if the path doesn't exist.\n\nThere is also a symlink called **x**, so you can type less using it.\n\n## Examples\n\nRun a command in a specific directory:\n\n```text\n$ execdir ~/Fedora/SCM/nq git status\nOn branch rawhide\nYour branch is up to date with 'origin/rawhide'.\n\nnothing to commit, working tree clean\n```\n\nRun a shell command in a specific directory:\n\n```text\n$ execdir -s ~/Desktop echo \\$PWD\n/home/xfgusta/Desktop\n```\n\nCreate an alias for a path:\n\n```text\n$ execdir -a nq ~/Fedora/SCM/nq\n```\n\nUse an alias:\n\n```text\n$ execdir nq pwd\n/home/xfgusta/Fedora/SCM/nq\n```\n\nList all aliases:\n\n```text\n$ execdir -l\nnq    /home/xfgusta/Fedora/SCM/nq\n```\n\nDelete an alias:\n\n```text\n$ execdir -r nq\n```\n\n## Installation\n\n### Arch Linux\n\n[**execdir**](https://aur.archlinux.org/packages/execdir) package from AUR\n\n```text\ngit clone https://aur.archlinux.org/execdir.git\ncd execdir\nmakepkg -si\n```\n\n### Fedora Linux\n\n[**execdir**](https://copr.fedorainfracloud.org/coprs/xfgusta/execdir/) package from Copr\n\n```text\ndnf copr enable xfgusta/execdir\ndnf install execdir\n```\n\n### From source\n\nThe install directory defaults to `/usr/local`:\n\n```text\nmake install\n```\n\nYou can install **execdir** in a different directory using the `PREFIX` variable:\n\n```text\nmake PREFIX=/usr install\n```\n\n## License\n\nCopyright (c) 2022 Gustavo Costa. Distributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfgusta%2Fexecdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxfgusta%2Fexecdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfgusta%2Fexecdir/lists"}