{"id":27301148,"url":"https://github.com/isaiah76/linux-shell","last_synced_at":"2025-04-12T01:35:59.326Z","repository":{"id":281392710,"uuid":"945128232","full_name":"isaiah76/linux-shell","owner":"isaiah76","description":"a c++ implementation of a linux shell with core shell functionalities, including command parsing, process creation, signal handling and shell built-ins. ","archived":false,"fork":false,"pushed_at":"2025-03-10T10:26:05.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T14:46:36.892Z","etag":null,"topics":["command-line","cpp","educational","linux","linux-shell","operating-system","shell","terminal","unix","unix-shell"],"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/isaiah76.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-03-08T18:12:28.000Z","updated_at":"2025-03-14T04:29:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"97961c54-8883-4d82-ae82-c2fb7f84e89b","html_url":"https://github.com/isaiah76/linux-shell","commit_stats":null,"previous_names":["isaiah512/linux-shell","isaiah76/linux-shell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiah76%2Flinux-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiah76%2Flinux-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiah76%2Flinux-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaiah76%2Flinux-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaiah76","download_url":"https://codeload.github.com/isaiah76/linux-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504759,"owners_count":21115204,"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":["command-line","cpp","educational","linux","linux-shell","operating-system","shell","terminal","unix","unix-shell"],"created_at":"2025-04-12T01:35:58.677Z","updated_at":"2025-04-12T01:35:59.318Z","avatar_url":"https://github.com/isaiah76.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linux-shell\n\nA C++ implementation of a Linux shell that is lightweight and customizable. linux-shell provides a familiar command-line interface with support for command history, aliases, and common built-in commands.\n\n## Features\n\n- **Command Execution**: Run any standard Linux programs and commands\n- **Built-in Commands**:\n  - `cd`: Change directory\n  - `pwd`: Print working directory\n  - `echo`: Display text\n  - `history`: View command history\n  - `alias`/`unalias`: Create and manage command aliases\n  - `exit`: Exit the shell\n- **Command History**: Persistent history between sessions with support for history navigation\n- **Tab Completion**: File and command tab completion\n- **Aliases**: Define custom command shortcuts that persist between sessions\n- **Signal Handling**: Properly handles Ctrl+C (SIGINT) and Ctrl+Z (SIGTSTP)\n- **Multiline Commands**: Support for command continuation with backslash\n\n## Installation\n\n### Prerequisites\n\n- A C++ compiler with C++11 support\n- CMake (version 3.10 or later)\n- Readline development library\n\nOn Debian/Ubuntu:\n```bash\nsudo apt-get install build-essential cmake libreadline-dev\n```\n\nOn Arch Linux:\n```bash\nsudo pacman -S base-devel cmake readline\n```\n\nOn Red Hat/Fedora:\n```bash\nsudo dnf install gcc-c++ cmake readline-devel\n```\n\n### Building and Installing\n\nClone the repository:\n```bash\ngit clone https://github.com/isaiah76/linux-shell.git\ncd linux-shell\n```\n\nYou have two options to build and install:\n\n### Option 1: Automated Build/Installation Script\n\n1. Make the script executable:\n```bash\nchmod +x build_install.sh\n```\n\n2. Run the script:\n```bash\n./build_install.sh\n```\n\n### Option 2: Manual Build with CMake\n\n1. Create a build directory, configure and build the project:\n```bash\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n2. To install the shell system-wide (the binary will be installed to /usr/local/bin):\n```bash\nsudo make install\n```\n\n## Usage\n\nAfter installation, launch the shell by typing:\n```bash\nlinux-shell\n```\n\n## Command history\n\nCommand history is automatically saved to `~/.linux_shell_history` and loaded when the shell starts.\n\n- Use the up and down arrow keys to navigate through command history.\n- View history with the `history` command:\n```bash\nhistory      # Show all history\nhistory 10   # Show the last 10 commands\n```\n\n## Aliases\n\nCreate an alias:\n```bash\nalias ll='ls -la'\nalias gs='git status'\n```\n\nView all aliases:\n```bash\nalias ll='ls -la'\nalias gs='git status'\n```\n\nView a specific alias:\n```bash\nalias ll\n```\n\nRemove an alias:\n```bash\nunalias ll\n```\n\nAliases are automatically saved to `~/.linux_shell_aliases` and loaded when the shell starts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaiah76%2Flinux-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaiah76%2Flinux-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaiah76%2Flinux-shell/lists"}