{"id":25268247,"url":"https://github.com/ribeiro-boll/concha-shell","last_synced_at":"2025-04-06T04:19:15.660Z","repository":{"id":277109294,"uuid":"931343156","full_name":"ribeiro-boll/Concha-shell","owner":"ribeiro-boll","description":"Shell basico para sistemas com ambiente compatível com POSIX, feito 100% com a linguagem C","archived":false,"fork":false,"pushed_at":"2025-03-08T17:14:50.000Z","size":100,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T18:21:08.058Z","etag":null,"topics":["c-language","cli","linux","posix","shell"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ribeiro-boll.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":"2025-02-12T05:40:19.000Z","updated_at":"2025-03-08T17:14:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"8128bba1-504d-4405-b6d1-75a0e42d3f4f","html_url":"https://github.com/ribeiro-boll/Concha-shell","commit_stats":null,"previous_names":["ribeiro-boll/concha-shell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeiro-boll%2FConcha-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeiro-boll%2FConcha-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeiro-boll%2FConcha-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribeiro-boll%2FConcha-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribeiro-boll","download_url":"https://codeload.github.com/ribeiro-boll/Concha-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247431237,"owners_count":20937917,"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":["c-language","cli","linux","posix","shell"],"created_at":"2025-02-12T10:24:24.944Z","updated_at":"2025-04-06T04:19:15.653Z","avatar_url":"https://github.com/ribeiro-boll.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![os](https://camo.githubusercontent.com/e6d28433c0c1041770537fc7f5af3110f9d9cb0b8e8aded756769aebdba81135/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e75782d677265793f6c6f676f3d6c696e7578)\n![license](https://img.shields.io/badge/License-Unlicense-green)  ![badge](https://img.shields.io/badge/Lang-C-blue)\n\n# 🐚 *Concha shell* \n![image](https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWN6aDd4ZGYzYWkyZjN2MGh4cTA0eWp2NjQ4NDJ5ZWkyenphOWY3cyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/adAyFMeT3HF5uzuNKr/giphy.gif)\n![imagepc](https://i.imgur.com/sHpm6QR.jpeg)\n\n\n- *English version: [English version](#English)* \n\n- *Versão pt-BR: [Versão pt-BR](#pt-BR)*\n\n\n## English \n\nA simple shell implemented in C for educational purposes. It provides basic command execution, directory navigation, and minimal signal handling.\n\n**Now with:**\n\n  **- Logic operators ('\u0026\u0026', '||' ou ';') and pipe operator ( '|' )**\n  \n  **- Command history**\n  \n  **- Arrow keys are now usable for editing the command input**\n\n  \n\n### Features\n- **Change Directory (`cd`)**: Changes the current directory. If no argument is provided, defaults to the directory ($HOME).\n- **List Directory Contents (`ls`)**: Displays the contents of the current directory.\n- **Clear Screen (`cls`)**: Clears the terminal window.\n- **Clear History (`hcls`)**: clears the file that stores the command and deletes the current history.\n- **Built-in Commands**: Includes `help` (displays available commands) and `exit` (exits the shell).\n- **Execution of External Commands**: If a command is not built-in, the shell attempts to execute it using the system PATH.\n- **Signal Handling**: Captures SIGINT (Ctrl+C) and provides a custom message.\n\n### Requirements\n- Linux operating system\n- GCC or a compatible C compiler\n- POSIX-compliant environment\n\n### Compilation\nClone the repository and compile the source code using GCC:\n\n```bash\ngcc -o concha concha.c -lreadline\n```\n\n## pt-BR\n\nUm shell simples implementado em C para fins educacionais. Ele fornece execução básica de comandos, navegação de diretórios e tratamento mínimo de sinais.\n\n**Agora com:**\n\n**- Operadores lógicos ('\u0026\u0026', '||' ou ';') e operador pipe ('|')**\n\n**- Histórico de comandos**\n\n**- As teclas de seta agora podem ser usadas para editar a entrada de comandos**\n\n\n\n\n### Funcionalidades\n- **Mudar Diretório (`cd`)**: Altera o diretório atual. Se nenhum argumento for fornecido, utiliza como padrão o diretório ($HOME).\n- **Listar Conteúdo do Diretório (`ls`)**: Exibe o conteúdo do diretório atual.\n- **Limpar a Tela (`cls`)**: Limpa a janela do terminal.\n- **Limpar o Historico (`hcls`)**: limpa o arquivo que guarda os comandos e apaga o historico atual\n- **Comandos Internos**: Inclui `help` (exibe os comandos disponíveis) e `exit` (encerra o shell).\n- **Execução de Comandos Externos**: Se um comando não for interno, o shell tenta executá-lo utilizando o PATH do sistema.\n- **Tratamento de Sinais**: Captura SIGINT (Ctrl+C) e exibe uma mensagem customizada.\n\n### Requisitos\n- Sistema operacional Linux\n- GCC ou um compilador C compatível\n- Ambiente compatível com POSIX\n\n### Compilação\nClone o repositório e compile o código-fonte usando o GCC:\n\n```bash\ngcc -o concha concha.c -lreadline\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribeiro-boll%2Fconcha-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribeiro-boll%2Fconcha-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribeiro-boll%2Fconcha-shell/lists"}