mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Added nux-env script for managing nux-env.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
490a31a195
commit
0a8f22df48
1 changed files with 23 additions and 0 deletions
23
bin/nux-env
Executable file
23
bin/nux-env
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env nux-runner
|
||||||
|
### Portable *nix environment by tonydamage
|
||||||
|
|
||||||
|
## status - Show status of nux-env installation
|
||||||
|
task.status() {
|
||||||
|
echo nux-env folder: $NUX_ENV_DIR
|
||||||
|
pushd $NUX_ENV_DIR > /dev/null
|
||||||
|
git status
|
||||||
|
popd > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
## update - pulls latest nux-env from repository.
|
||||||
|
task.update() {
|
||||||
|
pushd $NUX_ENV_DIR > /dev/null
|
||||||
|
git stash
|
||||||
|
git pull -r
|
||||||
|
git stash pop
|
||||||
|
popd > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
task.install() {
|
||||||
|
:
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue