gt
, is a command-line tool written in Go that displays a tree of files and directories with colored icons.
- Displays a tree of files and directories.
- Supports showing hidden files.
- Option to unsort files.
- Displays summary of files and directories.
- Colored icons based on file types.
- List directories only.
- Order files.
- Print full path.
-
Ensure you have Go installed, and also Nerd Fonts
-
Clone the repository
2-1. Go
git clone https://github.com/elbachir-one/gt
cd gt/
go build
sudo cp gt /usr/local/bin/gt
sudo cp gt.1 /usr/local/share/man/man1/ # To copy the man page.
gt
2-2. Using the Makefile
git clone --depth 1 https://github.com/elbachir-one/gt
cd gt/
make
sudo make install
- Arch Linux
yay -S gt
- Void Linux
git clone --depth=1 https://github.com/void-linux/packages
cd void-packages/
./xbps-src binary-bootstrap
mkdir srcpkgs/gt
vim srcpkgs/gt/template # Use you own editor
Past the content of this template to your local template and save it.
./xbps-src pkg gt
sudo xbps-install -R hostdir/binpkgs gt
gt
gt [OPTIONS] [DIRECTORY]
gt | less -r
-r
is an option for less to repaint the screen.
gt | fzf --ansi
Options:
Contributions, issues, and feature requests are always welcome! Thank you.