−self/commands
This commit is contained in:
parent
950f54ecdc
commit
60ccba2fd5
1 changed files with 5 additions and 18 deletions
23
sh/self.sh
23
sh/self.sh
|
@ -1,19 +1,6 @@
|
||||||
# self
|
# ╭──────╮
|
||||||
# module
|
# │ self │
|
||||||
|
# ╰──────╯
|
||||||
# ╭──────┬──────────╮
|
|
||||||
# │ self │ commands │
|
|
||||||
# ╰──────┴──────────╯
|
|
||||||
|
|
||||||
# get commands from root
|
|
||||||
rwx_self_commands() {
|
|
||||||
grep \
|
|
||||||
--directories "recurse" \
|
|
||||||
--no-filename \
|
|
||||||
"^${RWX_SELF_COMMAND}" "${RWX_ROOT_SYSTEM}" |
|
|
||||||
cut --delimiter "(" --fields 1 |
|
|
||||||
sed "s|^${RWX_SELF_COMMAND}||"
|
|
||||||
}
|
|
||||||
|
|
||||||
# ╭──────┬──────╮
|
# ╭──────┬──────╮
|
||||||
# │ self │ help │
|
# │ self │ help │
|
||||||
|
@ -44,8 +31,8 @@ rwx_self_init() {
|
||||||
# │ self │ install │
|
# │ self │ install │
|
||||||
# ╰──────┴─────────╯
|
# ╰──────┴─────────╯
|
||||||
|
|
||||||
_rwx_cmd_rwx_install() { rwx_self_install "${@}"; }
|
#= rwx_install
|
||||||
rwx_self_install() {
|
rwx_code_install() {
|
||||||
local target="${1}"
|
local target="${1}"
|
||||||
local command file name root
|
local command file name root
|
||||||
# code
|
# code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue