{"id":15705736,"url":"https://github.com/tetsuo-cpp/tsh","last_synced_at":"2025-03-30T15:44:12.907Z","repository":{"id":154780594,"uuid":"167358123","full_name":"tetsuo-cpp/tsh","owner":"tetsuo-cpp","description":"Tetsuo's Shell (Tsh).","archived":false,"fork":false,"pushed_at":"2019-08-17T06:21:10.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-05T17:18:09.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tetsuo-cpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-01-24T11:41:10.000Z","updated_at":"2019-10-04T06:41:09.000Z","dependencies_parsed_at":"2023-05-28T16:30:15.798Z","dependency_job_id":null,"html_url":"https://github.com/tetsuo-cpp/tsh","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":0.375,"last_synced_commit":"5250e31000cb97ba60b309349a5d32f1dccb9af4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo-cpp%2Ftsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo-cpp%2Ftsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo-cpp%2Ftsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo-cpp%2Ftsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tetsuo-cpp","download_url":"https://codeload.github.com/tetsuo-cpp/tsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342715,"owners_count":20761938,"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-03T20:19:32.498Z","updated_at":"2025-03-30T15:44:12.886Z","avatar_url":"https://github.com/tetsuo-cpp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tetsuo's Shell (Tsh)\nThis is a toy shell I wrote to become more familar with C.\n## Features\n* Interactive commands (less, vi, etc).\n* Piping.\n* I/O redirection.\n* Using environment variables as args.\n* Records command duration with SQLite (because why not).\n* Shell history.\n## Improvements\n* File globbing.\n* More granular I/O redirection (choosing between stdout and stderr).\n* More operators.\n* Job control.\n* Make less buggy.\n## Dependencies\n* CMake.\n* GNU ReadLine.\n* SQLite Version 3.\n* Attractive Chaos' Klib.\n## Build\nBring in Git submodules.\n```\ngit submodule init\ngit submodule update\n```\nRun ```build.sh``` to invoke the CMake build.\n```\nsh build.sh [BUILD_TYPE:debug/release/asan/ubsan/scan]\n```\n## Usage\nTo execute a single command.\n```\nbuild/[BUILD_TYPE]/tsh [COMMAND]\n```\nTo run Tsh as the active shell (Ctrl-D to exit).\n```\nbuild/[BUILD_TYPE]/tsh\n```\nTo run an Address Sanitized build.\n```\nASAN_OPTIONS=\"symbolize=1\" build/asan/tsh\n```\nTo run an Undefined Behaviour Sanitized build.\n```\nUBSAN_OPTIONS=\"print_stacktrace=1\" build/ubsan/tsh\n```\n## Built-in commands\n* ```cd```: Change current working directory.\n* ```help```: Display help text.\n* ```exit```: Exit the shell.\n* ```tshstats```: Display command duration information (backed by SQLite).\n* ```history```: Display the shell history (backed by SQLite).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuo-cpp%2Ftsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftetsuo-cpp%2Ftsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuo-cpp%2Ftsh/lists"}