mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
nuxfs: Added sdir directive.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
0911f06f83
commit
6c5d4fffcf
2 changed files with 5 additions and 1 deletions
|
|
@ -57,6 +57,10 @@ function nuxfs.dsl.keywords {
|
||||||
dir() {
|
dir() {
|
||||||
nuxfs.dsl.command directory "$@";
|
nuxfs.dsl.command directory "$@";
|
||||||
}
|
}
|
||||||
|
sdir() {
|
||||||
|
dir "$@"
|
||||||
|
enddir
|
||||||
|
}
|
||||||
|
|
||||||
directory() {
|
directory() {
|
||||||
nuxfs.dsl.command directory "$@";
|
nuxfs.dsl.command directory "$@";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ function nuxfs.relative {
|
||||||
}
|
}
|
||||||
|
|
||||||
function nuxfs.relative-to-pwd {
|
function nuxfs.relative-to-pwd {
|
||||||
realpath -s "$1" --relative-to "$(realpath "$(pwd)")"
|
realpath -m -s "$1" --relative-to "$(realpath "$(pwd)")"
|
||||||
}
|
}
|
||||||
|
|
||||||
function nuxfs.error {
|
function nuxfs.error {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue