mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Fixed NUX_APP_NAME usage.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
fc1b5bbc87
commit
163a2b820b
7 changed files with 12 additions and 159 deletions
|
|
@ -87,14 +87,14 @@ function nux.cfg.write {
|
|||
## by library for customization of path format.
|
||||
##
|
||||
function nux.cfg.dir.global {
|
||||
echo "$HOME/.config/$NUX_APPNAME"
|
||||
echo "$HOME/.config/$NUX_APP_NAME"
|
||||
}
|
||||
## nux.cfg.dir.dist::
|
||||
## Returns path of *dist* config directory. SHOULD be overriden
|
||||
## by library for customization of path format.
|
||||
|
||||
function nux.cfg.dir.dist {
|
||||
echo "$NUX_ENV_DIR/config/$NUX_APPNAME"
|
||||
echo "$NUX_APP_DIR/config/$NUX_APP_NAME"
|
||||
}
|
||||
## nux.cfg.dir.local::
|
||||
## Returns path of *local* config directory. SHOULD be overriden
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ nux.use nuxr/repl
|
|||
else
|
||||
nuxr.task.help.comment "$NUX_SCRIPT" "$topic" \
|
||||
|| nuxr.task.help.comment "$NUX_RUNNER" "$topic" \
|
||||
|| echo "Help topic $1 not found. Run '$NUX_APPNAME help' to see topics."
|
||||
|| echo "Help topic $1 not found. Run '$NUX_SCRIPTNAME help' to see topics."
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
|
||||
function :prompt {
|
||||
echo "${nc_green}$NUX_APPNAME${nc_end}> "
|
||||
echo "${nc_green}$NUX_SCRIPTNAME${nc_end}> "
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue