changelog shortlog graph tags branches files raw help

Mercurial > infra / changeset: etc/skel init

changeset 22: 0a88cdd4bbd5
parent 21: 3491c1d1815d
child 23: 4300e14bb1db
author: ellis <ellis@rwest.io>
date: Tue, 05 Dec 2023 22:00:49 -0500
files: .shellcheckrc etc/skel/.bash_logout etc/skel/.bash_profile etc/skel/.bashrc etc/skel/.sbclrc scripts/init.sh virt/build-archlinux-base.sh virt/build-box-base.sh virt/run.sh
description: etc/skel init
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/.shellcheckrc	Tue Dec 05 22:00:49 2023 -0500
     1.3@@ -0,0 +1,11 @@
     1.4+# Suggest explicitly using -n in `[ $var ]`
     1.5+enable=avoid-nullary-conditions
     1.6+
     1.7+# Suggest 'command -v' instead of 'which'
     1.8+enable=deprecate-which
     1.9+
    1.10+# Suggest quoting variables without metacharacters
    1.11+enable=quote-safe-variables
    1.12+
    1.13+# Require [[ and warn about [ in Bash/Ksh
    1.14+enable=require-double-brackets
    1.15\ No newline at end of file
     2.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2+++ b/etc/skel/.bash_logout	Tue Dec 05 22:00:49 2023 -0500
     2.3@@ -0,0 +1,3 @@
     2.4+#
     2.5+# ~/.bash_logout
     2.6+#
     3.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2+++ b/etc/skel/.bash_profile	Tue Dec 05 22:00:49 2023 -0500
     3.3@@ -0,0 +1,5 @@
     3.4+#
     3.5+# ~/.bash_profile
     3.6+#
     3.7+
     3.8+[[ -f ~/.bashrc ]] && . ~/.bashrc
     4.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2+++ b/etc/skel/.bashrc	Tue Dec 05 22:00:49 2023 -0500
     4.3@@ -0,0 +1,20 @@
     4.4+# ~/.bashrc --- interactive Bash session config
     4.5+
     4.6+# If not running interactively, don't do anything
     4.7+[[ $- != *i* ]] && return
     4.8+
     4.9+alias ls='ls --color=auto'
    4.10+alias ec='emacsclient -c'
    4.11+alias et='emacsclient -t'
    4.12+
    4.13+PS1="\u [\!]:\t:\w\n  >> \[\e[0m\]"
    4.14+
    4.15+export LANG=en_US.UTF-8
    4.16+
    4.17+export LISP='sbcl'
    4.18+export ESHELL='/usr/bin/bash'
    4.19+export ORGANIZATION='The Compiler Company'
    4.20+export LANG=en_US.UTF-8
    4.21+export ALTERNATE_EDITOR=''
    4.22+export EDITOR='emacsclient -t'
    4.23+export VISUAL='emacsclient -c'
     5.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2+++ b/etc/skel/.sbclrc	Tue Dec 05 22:00:49 2023 -0500
     5.3@@ -0,0 +1,10 @@
     5.4+(in-package :cl-user)
     5.5+(setq *debug-beginner-help-p* nil
     5.6+      *print-case* :downcase
     5.7+      *print-level* 50
     5.8+      *print-length* 200)
     5.9+
    5.10+#-quicklisp
    5.11+(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname))))
    5.12+  (when (probe-file quicklisp-init)
    5.13+    (load quicklisp-init)))
    5.14\ No newline at end of file
     6.1--- a/scripts/init.sh	Tue Dec 05 19:03:29 2023 -0500
     6.2+++ b/scripts/init.sh	Tue Dec 05 22:00:49 2023 -0500
     6.3@@ -10,7 +10,7 @@
     6.4 
     6.5 COMPANY_UPDATE_ROOT="${COMPANY_UPDATE_ROOT:-https://packy.compiler.company/dist}"
     6.6 
     6.7-# NOTICE: If you change anything here, please make the same changes in setup_mode.rs
     6.8+# this is copy/pasted from the actual release build.
     6.9 usage() {
    6.10     cat <<EOF
    6.11 cc-init 0.10 (0941fa04c53d+ 2023-12-03)
     7.1--- a/virt/build-archlinux-base.sh	Tue Dec 05 19:03:29 2023 -0500
     7.2+++ b/virt/build-archlinux-base.sh	Tue Dec 05 22:00:49 2023 -0500
     7.3@@ -2,10 +2,8 @@
     7.4 id=$(buildah from --pull archlinux:latest)
     7.5 buildah run $id useradd -ms /bin/bash alik
     7.6 buildah run $id useradd -ms /bin/bash demon
     7.7-buildah run $id mkdir -p /usr/src/comp /var/local/lab /data
     7.8 buildah run --net host $id pacman-key --init
     7.9-buildah run --net host $id pacman -Syu git mercurial caddy --noconfirm
    7.10-buildah config --workingdir /var/local $id
    7.11-buildah config --annotation archlinux --env PATH=$PATH $id
    7.12-buildah config --author='Richard Westhaver' --domainname 'compiler.company'$id
    7.13+buildah run --net host $id pacman -Syu gnupg openssh mercurial sqlite tmux btrfs-progs liburing wireguard-tools --noconfirm
    7.14+buildah config --annotation archlinux $id
    7.15+buildah config --author='Richard Westhaver' $id
    7.16 buildah commit $id archlinux-base
     8.1--- a/virt/build-box-base.sh	Tue Dec 05 19:03:29 2023 -0500
     8.2+++ b/virt/build-box-base.sh	Tue Dec 05 22:00:49 2023 -0500
     8.3@@ -1,5 +1,10 @@
     8.4 #!/usr/bin/bash
     8.5 id=$(buildah from archlinux-base)
     8.6-buildah add $id /mnt/y/lab /var/local/lab
     8.7-buildah config --workingdir /var/local/lab $id
     8.8+# buildah add $id /mnt/y/lab /var/local/lab
     8.9+buildah run $id useradd -ms /bin/bash $USER
    8.10+buildah run $id mkdir -p /home/$USER/lab /var/local/data
    8.11+buildah run --net host $id pacman -Syu git sbcl base-devel zstd --noconfirm
    8.12+buildah run --net host $id hg clone https://vc.compiler.company/comp/core /usr/src/core
    8.13+buildah run --net host $id hg clone https://vc.compiler.company/comp/infra /usr/src/infra
    8.14+buildah config --workingdir /home/$USER $id
    8.15 buildah commit $id box-base
     9.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2+++ b/virt/run.sh	Tue Dec 05 22:00:49 2023 -0500
     9.3@@ -0,0 +1,3 @@
     9.4+#!/bin/sh
     9.5+ports="${1:-8080:80/tcp}"
     9.6+podman run -dt -p $ports localhost/archlinux-base