diff --git a/haini.sh b/haini.sh index f4eb694..d2ff0f2 100755 --- a/haini.sh +++ b/haini.sh @@ -33,6 +33,7 @@ correr() { HAIN_ENV=true \ RAILS_ENV="${RAILS_ENV:-development}" \ JEKYLL_ENV="${JEKYLL_ENV:-development}" \ + EDITOR="nano" \ bwrap \ --unshare-user-try \ --unshare-ipc \ @@ -91,6 +92,9 @@ crear_entorno() { install -dm 755 "$ENTORNO/run/nginx" # Instalar la configuraciĆ³n install -m 640 "$DIR/nginx.conf" "$ENTORNO/etc/nginx/http.d/default.conf" + + # Resaltado de sintaxis en nano + grep -q "^include " "$ENTORNO/etc/nanorc" || echo "include \"/usr/share/nano/*.nanorc\"" >> "$ENTORNO/etc/nanorc" } crear_entorno diff --git a/packages b/packages index 65c4a66..cd624b2 100644 --- a/packages +++ b/packages @@ -8,6 +8,8 @@ libssh2 libxml2 libxslt make +nano +nano-syntax ncurses-terminfo nginx nodejs