]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/nb.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 2 Jan 2018 16:38:59 +0000 (16:38 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 2 Jan 2018 16:38:59 +0000 (16:38 +0000)
etc/profile.d/nb.sh
etc/profile.d/php.sh

index d4524dec2c06dfaad01b6fc3616815a28d1b5da6..69931c9c5f44c27551efdf64c61fef6df92b4619 100644 (file)
@@ -71,7 +71,12 @@ nb_rb() {
 }
 
 nb_perl() {
-       ruby -r$NB_ROOT/lib/perl/NB -e "$@"
+       perl -I$NB_ROOT/lib/perl/NB -e "$@"
+}
+
+nb_php() {
+  local code="$1"; shift
+  php -r "require '$NB_ROOT/lib/php/cmd.php';$code;" $@
 }
 
 nb_api() {
index a5cd05a3f371ca3eb78eede1b4ca32ca772f1b12..b8ecac10abb236a71450d3d6c259d97a898fa359 100644 (file)
@@ -7,8 +7,3 @@ php_check() {
   #=SHELL_REPLACE echo $(dbq t=mime id=php -cut 3) \$@
   php --define error_reporting=22519 --define display_errors=1 --define log_errors=1 --define html_errors=0 $@
 }
-
-php_run() {
-  local code="$1"; shift
-  php -r "require '$NB_ROOT/lib/php/cmd.php';$code;" $@
-}