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: README.md
+50-32Lines changed: 50 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,62 +23,80 @@ hello:
23
23
With the `makeup` plugin, you can now run the `make hello` command from any subdirectory, deep inside the project without navigating back and forth 👇
24
24
25
25
```bash
26
-
# ~/repos/makeup
27
-
$ ll
28
-
29B Makefile
29
-
128B demofolder
30
-
31
26
# ~/repos/makeup
32
27
$ cd demo/level1/level2/level3
33
28
34
29
# ~/repos/makeup/demofolder/level1/level2/level3
35
-
$ make hello
30
+
$ make hello # This would otherwise fail
31
+
💄 Looking forMakefile'sin parent directories...
36
32
37
-
🧗 cd ..
38
-
🧗 cd ..
39
-
🧗 cd ..
40
-
🧗 cd ..
33
+
"Hello, World!"# Found the root Makefile and executed the target.
41
34
42
-
"Hello, World!"
35
+
$ pwd# Returns you back to where you executed the make command.
36
+
~/repos/makeup/demo/level1/level2/level3
37
+
```
38
+
39
+
## 🛠️ Configuration
40
+
41
+
You can customize the behavior of the `makeup` plugin by setting environment variables in your `.zshrc` file.
42
+
43
+
```sh
44
+
# ~/.zshrc
45
+
46
+
# Configuration
47
+
export MAKEUP_CONFIRM=true
48
+
export MAKEUP_BASE_DIR="$HOME"
43
49
44
-
# ~/repos/makeup/demofolder/level1/level2/level3
45
-
$
46
50
```
47
51
52
+
*`MAKEUP_CONFIRM`
53
+
54
+
This variable controls whether you want a confirmation prompt before the script runs. If set to `true`, it will show you the directory where it will run the `make` command.
55
+
56
+
*`MAKEUP_BASE_DIR`
57
+
58
+
This variable sets the root directory where the script will stop searching for a `Makefile`. If not set, it defaults to your home directory (`$HOME`). You can set it to any directory you want the script to stop searching at.
59
+
60
+
48
61
## 🔧 Installation
49
62
50
-
This plugin is still under development. To test it:
MAKEUP_CONFIRM=false # true / false Whether you want a prompt which shows you which directory you run it in. The answer is stored in the current terminal session.
70
-
MAKEUP_BASE_DIR="/"# Root directory where the script will give up.
0 commit comments