Add a function for checking whether a configuration is applied
This commit is contained in:
parent
3e125c639d
commit
519d055c10
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/bin/env fish
|
||||
function isConfigured -S
|
||||
set -q "$CONFIG_MODULE"
|
||||
end
|
||||
|
||||
function getConfig -S -a property
|
||||
source "$(status dirname)/eval-module.fish"
|
||||
evalModule "$CONFIG_MODULE" "$property" $argv[2..]
|
||||
|
|
Loading…
Reference in a new issue