Skip to content

Commit af082a5

Browse files
committed
✨ New release 0.6.0
- Fixed minor issues - Added new methods
1 parent a4e35b4 commit af082a5

File tree

2 files changed

+518
-57
lines changed

2 files changed

+518
-57
lines changed

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,36 @@ Edit your `~/.bashrc` file and add the following lines:
3131
```bash
3232
# Load 'bash-funcs' project
3333
[[ -r /path/to/bash_funcs ]] && source /path/to/bash_funcs
34+
[[ -n show_self_loading ]] && show_self_loading 2>/dev/null
3435
```
3536

3637
Once done, you can call any included functions.
3738

39+
### In ZSH instead of Bash
40+
41+
You can call any included functions from your ZSH shell as long as `bash-funcs` has been added to your `~/.bashrc` files as explained above.
42+
43+
Here is how to do:
44+
45+
```console
46+
$ bash -i -c '<function_name> [args]'
47+
```
48+
49+
Example:
50+
51+
```console
52+
$ bash -i -c 'show_device_temp'
53+
54+
Loaded 'bash_funcs' file
55+
- From: /path/to/bash-funcs
56+
- Version: 0.6.0
57+
58+
acpitz - 59°C - all good
59+
pch_skylake - 81°C - critical
60+
x86_pkg_temp - 62°C - getting hot
61+
62+
```
63+
3864
## Arguments
3965

4066
Even if this file __MUST__ be sourced to be used, it support the following arguments:
@@ -53,6 +79,10 @@ Flags:
5379

5480
> Note that there is a check included in the file that will be triggered if the 'exec' permission is being granted.
5581
82+
## Thanks
83+
84+
Huge thanks to the work made by the THC group for the inspiration.
85+
5686
## Author
5787

5888
* __Jiab77__

0 commit comments

Comments
 (0)