gterm/README.md

40 lines
873 B
Markdown
Raw Permalink Normal View History

2021-11-16 18:04:21 +00:00
# gterm
## Usage
```shell
Usage: gterm [options]
-addr string
address to bind (default ":8000")
-allow string
restrict ip
2021-11-18 03:10:35 +00:00
-arg value
additional args to pass to cmd, multiple args can be passed, ex. -arg a -arg b
2021-11-16 18:04:21 +00:00
-dev
2021-11-18 03:10:35 +00:00
set the system to development mode
-dir string
the working dir that the shell will start from
2021-11-16 18:04:21 +00:00
-log-level int
2021-11-18 03:10:35 +00:00
log level, error:1 debug:2 warn:4 info:8 (default 9)
2021-11-16 18:04:21 +00:00
-name string
2021-11-18 03:10:35 +00:00
the application name (default "gterm")
-profile
print default profile, could be invoked with <(..)
2021-11-16 18:04:21 +00:00
-shell string
2021-11-18 03:10:35 +00:00
the shell to use (default "bash")
2021-11-16 18:04:21 +00:00
-v show version
```
2021-11-17 16:10:35 +00:00
### run bash with default profile
```shell
gterm -arg "--rcfile" -arg <(gterm -profile)
```
2021-11-16 18:04:21 +00:00
## Install
```shell
sudo rm -f /usr/local/bin/gterm
sudo sh -c "curl -fsSL RELEASE_URL | tar -C /usr/local/bin/ -xz"
```