Add alias to autostart script
This commit is contained in:
parent
f3b67ca2e9
commit
de0663730c
3 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@ _query_autostart_toml() {
|
|||
}
|
||||
|
||||
_list () {
|
||||
_query_autostart_toml '.key'
|
||||
_query_autostart_toml '.value.alias // .key'
|
||||
}
|
||||
|
||||
_echo_table () {
|
||||
|
@ -64,7 +64,7 @@ _autostart_manage_sync () {
|
|||
}
|
||||
|
||||
_get_autostart_cmd () {
|
||||
_query_autostart_toml 'select(.key == "'"$1"'") | .value.command'
|
||||
_query_autostart_toml 'select((.key == "'"$1"'") or (.value.alias == "'"$1"'")) | .value.command'
|
||||
}
|
||||
|
||||
_autostart_manage_exec () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue