{"id":13620757,"url":"https://github.com/elbachir-one/gt","last_synced_at":"2026-01-26T15:10:52.896Z","repository":{"id":249104103,"uuid":"829028242","full_name":"elbachir-one/gt","owner":"elbachir-one","description":"gt is a tree-like program written in Go with a lot of features.","archived":false,"fork":false,"pushed_at":"2025-06-03T22:57:12.000Z","size":213,"stargazers_count":44,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T06:49:48.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elbachir-one.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":"2024-07-15T15:55:45.000Z","updated_at":"2025-06-03T22:57:13.000Z","dependencies_parsed_at":"2024-08-16T12:31:04.362Z","dependency_job_id":"09c6c4e4-b20d-42d3-b157-733ec3cad13b","html_url":"https://github.com/elbachir-one/gt","commit_stats":null,"previous_names":["elbachir-one/gt"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/elbachir-one/gt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbachir-one%2Fgt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbachir-one%2Fgt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbachir-one%2Fgt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbachir-one%2Fgt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elbachir-one","download_url":"https://codeload.github.com/elbachir-one/gt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbachir-one%2Fgt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28781308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-01T21:00:59.185Z","updated_at":"2026-01-26T15:10:52.891Z","avatar_url":"https://github.com/elbachir-one.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# gt\n\n![image-gt](https://i.postimg.cc/Dzp2zHJ7/gtshoot.png)\n\u003cbr\u003e\n\u003cbr\u003e\n#### `gt`, is a command-line tool written in Go that displays a tree of files and directories with colored icons.\n\n## Features\n\n- Displays a tree of files and directories.\n- Supports showing hidden files.\n- Option to unsort files.\n- Displays summary of files and directories.\n- Colored icons based on file types.\n- List directories only.\n- Order files.\n- Print full path.\n\n## Installation\n\n1. Ensure you have [Go](https://go.dev/dl/) installed, and also [Nerd Fonts](https://www.nerdfonts.com)\n\n2. Clone the repository\n\n2-1. Go\n```bash\n    git clone https://github.com/elbachir-one/gt\n    cd gt/\n    go build\n    sudo cp gt /usr/local/bin/gt\n    sudo cp gt.1 /usr/local/share/man/man1/ # To copy the man page.\n    gt\n```\n2-2. Using the Makefile\n\n``` bash\n    git clone --depth 1 https://github.com/elbachir-one/gt\n    cd gt/\n    make\n    sudo make install\n```\n\n#### Note: gt is in the [AUR](https://aur.archlinux.org/packages/gt), and a [template](https://github.com/elbachir-one/void-templates) is available for Void Linux.\n\n- Arch Linux\n```bash\n    yay -S gt\n```\n\n- Void Linux\n\n```bash\n    git clone --depth=1 https://github.com/void-linux/packages\n    cd void-packages/\n    ./xbps-src binary-bootstrap\n    mkdir srcpkgs/gt\n    vim srcpkgs/gt/template # Use you own editor\n```\nPast the content of this\n[template](https://github.com/elbachir-one/void-templates) to your local\ntemplate and save it.\n\n```bash\n    ./xbps-src pkg gt\n    sudo xbps-install -R hostdir/binpkgs gt\n```\n\n## Usage\n\n```bash\n    gt\n```\n```bash\n    gt [OPTIONS] [DIRECTORY]\n```\n\n#### Note: you can also pip `gt` to `fzf` or `less`.\n\n```bash\n    gt | less -r\n```\n![gt and less](https://i.postimg.cc/d3tzmKjs/2024-07-21-18-05.png)\n\n`-r` is an option for less to repaint the screen.\n\n```bash\n    gt | fzf --ansi\n```\n![gt and fzf](https://i.postimg.cc/C5P9c6cj/2024-07-21-18-06.png)\n\nOptions:\n\n| Option  | Description                                                                                                                    | example                                          |\n|---------|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|\n| -h --help | Show help                                                                                                                      | ![-h](https://i.postimg.cc/647QG2YT/h.png)       |\n| -v --version | Show version                                                                                                                   | ![-v](https://i.postimg.cc/xk0T3Ftw/v.png)       |\n| -a --all | Show hidden files                                                                                                              | ![-s](https://i.postimg.cc/4YR3m3tN/s.png)       |\n| -u --unsorted | Files                                                                                                                          | ![-u](https://i.postimg.cc/Bj5nDGc5/u.png)       |\n| -m --summary | Summary                                                                                                                        | ![-m](https://i.postimg.cc/PNcJny5D/m.png)       |\n| -d --directories | List directories only                                                                                                          | ![-d](https://i.postimg.cc/YGD99fNJ/d.png)       |\n| -o  --order-by-extension | Order files based on extension                                                                                                 | ![-o](https://i.postimg.cc/VdC6ftJV/o.png)       |\n| -f --full-path | Print full path prefix to each file                                                                                            | ![-f](https://i.postimg.cc/mhhknJBR/f.png)       |\n| --depth | Depth to which the tree should be displaye the default is -1 `gt --depth 1` any number greater than or equal to 1 can be used. | ![--depth](https://i.postimg.cc/yg8xsrRm/dd.png) |\n\n## Contributing\n\nContributions, issues, and feature requests are always welcome! Thank you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbachir-one%2Fgt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felbachir-one%2Fgt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbachir-one%2Fgt/lists"}