From 1d562af8927d932bc3329de3b06c94a966047238 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 30 Jan 2023 17:33:06 -0600 Subject: Add a bunch of stuff Forgot I had to `git add -f' these! --- profile/bc.sh | 11 +++++++++++ profile/chicken.sh.disabled | 15 +++++++++++++++ profile/gauche.sh | 26 ++++++++++++++++++++++++++ profile/locale.sh | 6 ++++++ profile/nodejs.sh | 3 +++ profile/npm.sh | 4 ++++ profile/python.sh | 6 ++++++ profile/rust.sh | 3 +++ profile/xdg-base-dir.sh | 12 ++++++++++++ profile/xfce.sh | 4 ++++ profile/xorg.sh | 10 ++++++++++ 11 files changed, 100 insertions(+) create mode 100644 profile/bc.sh create mode 100644 profile/chicken.sh.disabled create mode 100644 profile/gauche.sh create mode 100644 profile/locale.sh create mode 100644 profile/nodejs.sh create mode 100644 profile/npm.sh create mode 100644 profile/python.sh create mode 100644 profile/rust.sh create mode 100644 profile/xdg-base-dir.sh create mode 100644 profile/xfce.sh create mode 100644 profile/xorg.sh (limited to 'profile') diff --git a/profile/bc.sh b/profile/bc.sh new file mode 100644 index 0000000..f3b0f5e --- /dev/null +++ b/profile/bc.sh @@ -0,0 +1,11 @@ +# GNU bc + +BC_ENV_ARGS="-l -q" + +BC_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bc/init" + +if [ -f "$BC_CONFIG" ]; then + BC_ENV_ARGS="$BC_ENV_ARGS $BC_CONFIG" +fi + +export BC_ENV_ARGS diff --git a/profile/chicken.sh.disabled b/profile/chicken.sh.disabled new file mode 100644 index 0000000..975c830 --- /dev/null +++ b/profile/chicken.sh.disabled @@ -0,0 +1,15 @@ +## chicken scheme -*- sh -*- +# Enable local installation (i.e., without root) + +## XXX: Disabled because I simply install chicken from source in $LOCAL_PREFIX, +## which automagically makes everything correct. + +# m455 | lol fuck i dont even know, ill just use root like a shmuck + +export CHICKEN_INSTALL_REPOSITORY="$XDG_DATA_HOME/chicken/eggs" + +# m455 | ohh i think the CHICKEN_REPOSITORY_PATH is overriding where it's trying +# to find core modules. maybe ill just use that thing in makefiles instead of +# globally + +export CHICKEN_REPOSITORY_PATH="$XDG_DATA_HOME/chicken/eggs" diff --git a/profile/gauche.sh b/profile/gauche.sh new file mode 100644 index 0000000..ca5d35b --- /dev/null +++ b/profile/gauche.sh @@ -0,0 +1,26 @@ +# gauche scheme environment variables +# see also ~/.gaucherc + +# Warn if ‘#’ is used in the test expression of branch. In boolean +# context, ‘#’ counts true. It is also often the case that a procedure +# returns ‘#’ when the return value doesn’t matter, and you shouldn’t +# rely on the value that is supposed not to matter–the procedure may change the +# return value in future (which should be ok, since the value shouldn’t have +# mattered), which can cause unintentional and hard-to-track bugs. *Note +# Undefined values::, for the details. We strongly recommend users to turn on +# this warning. In future, we plan to make this default. +GAUCHE_CHECK_UNDEFINED_TEST=1 +export GAUCHE_CHECK_UNDEFINED_TEST + +# This is used by ‘gauche.interactive’ module to enable line-editor on REPL +# prompt. *Note Interactive development::, for the details. +GAUCHE_READ_EDIT=1 +export GAUCHE_READ_EDIT + +# If Gauche is invoked with ‘GAUCHE_READ_EDIT’ enabled (see below), the REPL +# history is kept in ‘~/.gosh_history’ by default. This environment variable +# overrides the history file. To prohibit saving history, set an empty string +# to this variable. If the process is suid/sgid-ed, history won’t be saved. +GAUCHE_HISTORY_FILE="${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/gauche/gosh_history" +mkdir -p "${GAUCHE_HISTORY_FILE%/*}" +export GAUCHE_HISTORY_FILE diff --git a/profile/locale.sh b/profile/locale.sh new file mode 100644 index 0000000..5eca844 --- /dev/null +++ b/profile/locale.sh @@ -0,0 +1,6 @@ +### locale settings + +## ensure UTF-8 +# this is an area that needs more research. +# maybe just LC_ALL will work. +LC_CTYPE=en_US.UTF-8 diff --git a/profile/nodejs.sh b/profile/nodejs.sh new file mode 100644 index 0000000..6d95dea --- /dev/null +++ b/profile/nodejs.sh @@ -0,0 +1,3 @@ +# node.js environment + +export npm_config_prefix="$LOCAL_PATH" diff --git a/profile/npm.sh b/profile/npm.sh new file mode 100644 index 0000000..108a869 --- /dev/null +++ b/profile/npm.sh @@ -0,0 +1,4 @@ +# Add npm path to $PATH + +command -v npm >/dev/null 2>&1 && + path_add_to_PATH "$(npm config get prefix)/bin" diff --git a/profile/python.sh b/profile/python.sh new file mode 100644 index 0000000..80d4ee2 --- /dev/null +++ b/profile/python.sh @@ -0,0 +1,6 @@ +## Python environment +# I try not to use python, because the tooling is just terrible. However, +# sometimes it's unavoidable. + +# from grym on #emacs --- TODO: research what this actually does, lol +export PIP_REQUIRE_VIRTUALENV=1 diff --git a/profile/rust.sh b/profile/rust.sh new file mode 100644 index 0000000..dd85a65 --- /dev/null +++ b/profile/rust.sh @@ -0,0 +1,3 @@ +export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup" +export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo" +. "$CARGO_HOME/env" # takes care of $PATH for us diff --git a/profile/xdg-base-dir.sh b/profile/xdg-base-dir.sh new file mode 100644 index 0000000..88a7370 --- /dev/null +++ b/profile/xdg-base-dir.sh @@ -0,0 +1,12 @@ +# XDG Base Dir Specification. +# See https://freedesktop.org/wiki/Software/xdg-user-dirs/ for details. + +. "${XDG_CONFIG_HOME:=$HOME/.config}/user-dirs.dirs" +export XDG_DESKTOP_DIR \ + XDG_DOCUMENTS_DIR \ + XDG_DOWNLOAD_DIR \ + XDG_MUSIC_DIR \ + XDG_PICTURES_DIR \ + XDG_PUBLICSHARE_DIR \ + XDG_TEMPLATES_DIR \ + XDG_VIDEOS_DIR diff --git a/profile/xfce.sh b/profile/xfce.sh new file mode 100644 index 0000000..85e90ce --- /dev/null +++ b/profile/xfce.sh @@ -0,0 +1,4 @@ +# enable global menus +# NOTE: Firefox and Thunderbird require this variable to be 0! + +export UBUNTU_MENUPROXY=1 diff --git a/profile/xorg.sh b/profile/xorg.sh new file mode 100644 index 0000000..89a26ec --- /dev/null +++ b/profile/xorg.sh @@ -0,0 +1,10 @@ +# X.org environment variables +# ~/.profile is sourced by LightDM + +# Xsession errors +export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors" +# Xsession RC +export USERXSESSIONRC="$XDG_CONFIG_HOME/xorg/xsessionrc" +# Xauthority --- though this doesn't work with LightDM (see +# https://askubuntu.com/a/961459 for a workaround). +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" -- cgit 1.4.1-21-gabe81