diff --git a/README.md b/README.md index b1881e2..b2772d8 100644 --- a/README.md +++ b/README.md @@ -159,8 +159,10 @@ hishtory config-set filter-duplicate-commands true If you don't need the ability to sync your shell history, you can install hiSHtory in offline mode: -``` +```sh curl https://hishtory.dev/install.py | HISHTORY_OFFLINE=true python3 - +# or +curl https://hishtory.dev/install.py | python3 - --offline ``` This disables syncing completely so that the client will not rely on the hiSHtory backend at all. You can also change the syncing status via `hishtory syncing enable` or `hishtory syncing disable`. diff --git a/backend/web/landing/www/install.py b/backend/web/landing/www/install.py index f884c30..07500c1 100644 --- a/backend/web/landing/www/install.py +++ b/backend/web/landing/www/install.py @@ -53,6 +53,8 @@ os.system('chmod +x ' + tmpFilePath) cmd = tmpFilePath + ' install' if os.environ.get('HISHTORY_OFFLINE'): cmd += " --offline" +if len(sys.argv) > 1: + cmd += " " + " ".join(sys.argv[1:]) exitCode = os.system(cmd) os.remove(tmpFilePath) if exitCode != 0: