diff --git a/README.md b/README.md index 1b5d24e..13fb699 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,18 @@ Options:
-h/--help -- show help
-u/--update -- update the script
-**running it on a remote machine:** +### **running it on a remote machine:** +**running once:** ```bash ssh root@remote 'bash -s' < stocheck.sh ``` +**proper alias:** +```bash +echo "function stocheck_remote { ssh root@"$"1 'bash -s' < ~/stocheck.sh; }" >> ~/.bashrc +echo "alias stocheck=stocheck_remote" >> ~/.bashrc +``` + # installation 1. download the script:
```bash