1
1
Fork 0
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:
Tony Tkáčik 2017-05-29 13:56:59 +02:00
parent 0911f06f83
commit 6c5d4fffcf
2 changed files with 5 additions and 1 deletions

View file

@ -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 "$@";

View file

@ -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 {