self/commands
This commit is contained in:
parent
bf10fd4a05
commit
ea8be45789
1 changed files with 11 additions and 1 deletions
12
sh/self.sh
12
sh/self.sh
|
@ -1,4 +1,14 @@
|
|||
# get functions from file
|
||||
# get commands from root
|
||||
rwx_self_commands() {
|
||||
grep \
|
||||
--directories "recurse" \
|
||||
--no-filename \
|
||||
"^${RWX_PREFIX_COMMAND}" "${RWX_ROOT_SYSTEM}" |
|
||||
cut --delimiter "(" --fields 1 |
|
||||
sed "s|^${RWX_PREFIX_COMMAND}||"
|
||||
}
|
||||
|
||||
# get functions from root
|
||||
rwx_self_functions() {
|
||||
grep \
|
||||
--directories "recurse" \
|
||||
|
|
Loading…
Reference in a new issue