| Crates.io | tsw |
| lib.rs | tsw |
| version | 0.3.2-rc.3 |
| created_at | 2025-10-29 01:03:07.126264+00 |
| updated_at | 2026-01-21 20:54:36.560654+00 |
| description | SU wrapper for termux |
| homepage | |
| repository | https://github.com/nteditor/tsw |
| max_upload_size | |
| id | 1905869 |
| size | 82,936 |
apt install rust
cargo install tsw
# And add '~/.cargo/bin' in $PATH
# Run interactive shell
tsw
# Run command in interactive shell
tsw nvim /data/adb/service.d/service.sh
# Run with fish
tsw --shell fish
# Run with master namespace
tsw --mount-master
Config location on /data/data/com.termux/files/usr/etc/tsw.toml.
# Path to SU file (only absolute)
su_file = "/system/bin/su"
# Path to home directory for root session (only absolute)
home_dir = "/data/data/com.termux/files/root"
# $PATH variable for root session
path_env = "/data/data/com.termux/files/usr/bin:/system/bin:/debug_ramdisk:/sbin:/sbin/su:/su/bin:/su/xbin:/system/bin:/system/xbin"
# Use master namespace
mount_master = false
The project is licensed under the GPL 3.0 License.