mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-16 18:41:03 +01:00
Accept cli flags in install script (#254)
This commit is contained in:
parent
50fe1793b6
commit
e55694d7e0
@ -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:
|
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 -
|
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`.
|
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`.
|
||||||
|
@ -53,6 +53,8 @@ os.system('chmod +x ' + tmpFilePath)
|
|||||||
cmd = tmpFilePath + ' install'
|
cmd = tmpFilePath + ' install'
|
||||||
if os.environ.get('HISHTORY_OFFLINE'):
|
if os.environ.get('HISHTORY_OFFLINE'):
|
||||||
cmd += " --offline"
|
cmd += " --offline"
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
cmd += " " + " ".join(sys.argv[1:])
|
||||||
exitCode = os.system(cmd)
|
exitCode = os.system(cmd)
|
||||||
os.remove(tmpFilePath)
|
os.remove(tmpFilePath)
|
||||||
if exitCode != 0:
|
if exitCode != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user