{"id":21543895,"url":"https://github.com/radj307/alias","last_synced_at":"2026-05-17T12:16:11.038Z","repository":{"id":53324779,"uuid":"422755476","full_name":"radj307/alias","owner":"radj307","description":"Emulates bash aliases on Windows.","archived":false,"fork":false,"pushed_at":"2023-02-18T19:03:18.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T08:44:03.649Z","etag":null,"topics":["bash-aliases","cli","command","commandline","commandline-alias","configurable","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","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/radj307.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":"2021-10-30T01:31:18.000Z","updated_at":"2023-02-18T23:38:16.000Z","dependencies_parsed_at":"2025-01-24T08:43:48.956Z","dependency_job_id":"ac73244d-3a66-480c-8984-ed41097f48ec","html_url":"https://github.com/radj307/alias","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2Falias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2Falias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2Falias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2Falias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radj307","download_url":"https://codeload.github.com/radj307/alias/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130278,"owners_count":20402753,"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":["bash-aliases","cli","command","commandline","commandline-alias","configurable","windows"],"created_at":"2024-11-24T05:15:59.709Z","updated_at":"2026-05-17T12:16:06.012Z","avatar_url":"https://github.com/radj307.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alias\n\nA filename-based Windows executable that emulates the specified command in a terminal, similar to `bash` aliases.\n\nThis allows you to create command aliases or command macros on windows, or execute shell scripts (`.bat`/`.ps1`) using an executable (`.exe`).\n\n\n## Features\n\n- Same return code as executing the command manually\n- Forwards commandline arguments\n- Filename-based configuration allows you to have any number of aliases in the same directory\n- Live-updating output\n\n\n## Usage\n\n 1. Download the [latest release](https://github.com/radj307/Command-Alias/releases).\n 2. Rename the executable to whatever you want.\n 3. Run the executable once, which will create the default configuration file in the same directory as the executable.\n 4. Edit the generated `.ini` file \u0026 set the command to execute.\n\n\n### Example\n\nSay you wanted to create an alias `lsf` for the PowerShell command `Get-ChildItem -Force`.  \n\n 1. Download *(or copy-paste)* `alias.exe` \u0026 move it to a [directory on your PATH](https://stackoverflow.com/a/44272417/8705305). \n 2. Rename `alias.exe` to `lsf.exe`, then run it once to generate the config file.\n 3. Edit `lsf.ini`:  \n    ```ini\n    [target]\n    command = \"PowerShell -Command 'Get-ChildItem -Force'\"\n    forward_args = true\n    ```  \n    Now you can run the `lsf` command to execute `Get-ChildItem -Force`\n\n# How it Works\n\nWhen the program is called, it finds its current location and searches that directory for an `ini` file with the same name.  \n\nIt then uses the __popen__ function to open a process pipe that it uses to emulate that process.  \nThe executed command's return code is forwarded by the program when it exits as well.  \n\n_Note: __popen__ uses `cmd.exe` by default; to execute PowerShell commands you must prepend `powershell -Command` to the command string in the config._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradj307%2Falias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradj307%2Falias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradj307%2Falias/lists"}