You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/faq.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,8 @@ outputs:
83
83
84
84
There are two ways to reference a local script:
85
85
86
-
The first method involves adding the folder containing your scripts to the `PATH` environment variable. This allows you to run the shell script without using `sh` or `bash` commands.
86
+
The first method involves adding the folder containing your scripts to the `PATH` environment variable.
87
+
This allows you to run the shell script directly without using `sh` or `bash` commands.
87
88
88
89
Start with adding a _shebang_ at the top of your file:
89
90
@@ -97,7 +98,7 @@ Finally, modify your `PATH` to add the directory where your script is located.
97
98
(It is good practice to use `$HOME/bin` for storing your own scripts).
98
99
99
100
```bash
100
-
export PATH=$PATH:/appropriate/directory
101
+
export PATH=$PATH:$HOME/bin
101
102
```
102
103
103
104
Now you can use `baseCommand: scriptname.sh` to run the script directly.
0 commit comments