{"id":17617532,"url":"https://github.com/ravenox/scriptcs.shebang","last_synced_at":"2025-04-13T22:08:08.566Z","repository":{"id":24479612,"uuid":"27883733","full_name":"RaveNoX/ScriptCs.Shebang","owner":"RaveNoX","description":"*nix shebang support for ScriptCs","archived":false,"fork":false,"pushed_at":"2014-12-11T18:26:57.000Z","size":592,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T22:08:01.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RaveNoX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-11T17:43:35.000Z","updated_at":"2014-12-13T13:18:07.000Z","dependencies_parsed_at":"2022-08-22T22:10:21.294Z","dependency_job_id":null,"html_url":"https://github.com/RaveNoX/ScriptCs.Shebang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaveNoX%2FScriptCs.Shebang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaveNoX%2FScriptCs.Shebang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaveNoX%2FScriptCs.Shebang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaveNoX%2FScriptCs.Shebang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaveNoX","download_url":"https://codeload.github.com/RaveNoX/ScriptCs.Shebang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788924,"owners_count":21161727,"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":[],"created_at":"2024-10-22T19:14:20.667Z","updated_at":"2025-04-13T22:08:08.530Z","avatar_url":"https://github.com/RaveNoX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"ScriptCs.Shebang\n================\n\n[Shebang](http://en.wikipedia.org/wiki/Shebang_(Unix)) support for [ScriptCs](http://scriptcs.net/)\n\nModule tells ScriptCs to ignore shebang line from parsing.\n\nWithout this module but with shebang in .csx file, you will get syntax error.\n\n\nThis module will be useful for scripting with [ScriptCs](http://scriptcs.net/) on *nix systems.\n\nInstallation\n------------\n1. Install [Mono](http://www.mono-project.com/download/)\n2. Install [ScriptCs](http://scriptcs.net/) for *nix systems: [guide](https://github.com/scriptcs/scriptcs/wiki/Installing-on-Mac-and-Linux)\n3. Create files in /usr/bin (or any other directory in your PATH) with this content:\n\n  **scriptcs**\n  ```bash\n  #!/bin/sh\n  \n  sciptcs_exe=\u003cpath to sciptcs.exe\u003e\n  \n  mono ${scriptcs_exe} $*\n  ```\n  \n  **scriptcs_sh**\n  ```bash\n  #!/bin/bash\n  scriptcs $1 -- ${*:1}\n  ```\n\n4. Make this files executable: \n  ```sh\n  # In directory with scripts from above\n  chmod +x scriptcs\n  chmod +x scriptcs_sh\n  ```\n5. Install ScriptCs.Shebang module globally:\n  ```sh\n  scriptcs -i ScriptCs.ShebangModule -g\n  ```\n\n6. Write example script:\n  **test.csx**\n  ```csharp\n  #!/usr/bin/env scriptcs_sh\n  \n  Console.WriteLine(\"Hello world\");\n  ```\n  \n7. Make script executable:\n  ```sh\n  chmod +x test.csx\n  ```\n8. Now you can exec ScriptCs scripts just like any shell scripts. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravenox%2Fscriptcs.shebang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravenox%2Fscriptcs.shebang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravenox%2Fscriptcs.shebang/lists"}