about summary refs log tree commit diff stats
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile/bc.sh11
-rw-r--r--profile/chicken.sh.disabled15
-rw-r--r--profile/gauche.sh26
-rw-r--r--profile/locale.sh6
-rw-r--r--profile/nodejs.sh3
-rw-r--r--profile/npm.sh4
-rw-r--r--profile/python.sh6
-rw-r--r--profile/rust.sh3
-rw-r--r--profile/xdg-base-dir.sh12
-rw-r--r--profile/xfce.sh4
-rw-r--r--profile/xorg.sh10
11 files changed, 100 insertions, 0 deletions
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 @@
1# GNU bc
2
3BC_ENV_ARGS="-l -q"
4
5BC_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bc/init"
6
7if [ -f "$BC_CONFIG" ]; then
8 BC_ENV_ARGS="$BC_ENV_ARGS $BC_CONFIG"
9fi
10
11export 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 @@
1## chicken scheme -*- sh -*-
2# Enable local installation (i.e., without root)
3
4## XXX: Disabled because I simply install chicken from source in $LOCAL_PREFIX,
5## which automagically makes everything correct.
6
7# m455 | lol fuck i dont even know, ill just use root like a shmuck
8
9export CHICKEN_INSTALL_REPOSITORY="$XDG_DATA_HOME/chicken/eggs"
10
11# m455 | ohh i think the CHICKEN_REPOSITORY_PATH is overriding where it's trying
12# to find core modules. maybe ill just use that thing in makefiles instead of
13# globally
14
15export 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 @@
1# gauche scheme environment variables
2# see also ~/.gaucherc
3
4# Warn if ‘#<undef>’ is used in the test expression of branch. In boolean
5# context, ‘#<undef>’ counts true. It is also often the case that a procedure
6# returns ‘#<undef>’ when the return value doesn’t matter, and you shouldn’t
7# rely on the value that is supposed not to matter–the procedure may change the
8# return value in future (which should be ok, since the value shouldn’t have
9# mattered), which can cause unintentional and hard-to-track bugs. *Note
10# Undefined values::, for the details. We strongly recommend users to turn on
11# this warning. In future, we plan to make this default.
12GAUCHE_CHECK_UNDEFINED_TEST=1
13export GAUCHE_CHECK_UNDEFINED_TEST
14
15# This is used by ‘gauche.interactive’ module to enable line-editor on REPL
16# prompt. *Note Interactive development::, for the details.
17GAUCHE_READ_EDIT=1
18export GAUCHE_READ_EDIT
19
20# If Gauche is invoked with ‘GAUCHE_READ_EDIT’ enabled (see below), the REPL
21# history is kept in ‘~/.gosh_history’ by default. This environment variable
22# overrides the history file. To prohibit saving history, set an empty string
23# to this variable. If the process is suid/sgid-ed, history won’t be saved.
24GAUCHE_HISTORY_FILE="${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/gauche/gosh_history"
25mkdir -p "${GAUCHE_HISTORY_FILE%/*}"
26export 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 @@
1### locale settings
2
3## ensure UTF-8
4# this is an area that needs more research.
5# maybe just LC_ALL will work.
6LC_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 @@
1# node.js environment
2
3export 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 @@
1# Add npm path to $PATH
2
3command -v npm >/dev/null 2>&1 &&
4 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 @@
1## Python environment
2# I try not to use python, because the tooling is just terrible. However,
3# sometimes it's unavoidable.
4
5# from grym on #emacs --- TODO: research what this actually does, lol
6export 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 @@
1export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup"
2export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo"
3. "$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 @@
1# XDG Base Dir Specification.
2# See https://freedesktop.org/wiki/Software/xdg-user-dirs/ for details.
3
4. "${XDG_CONFIG_HOME:=$HOME/.config}/user-dirs.dirs"
5export XDG_DESKTOP_DIR \
6 XDG_DOCUMENTS_DIR \
7 XDG_DOWNLOAD_DIR \
8 XDG_MUSIC_DIR \
9 XDG_PICTURES_DIR \
10 XDG_PUBLICSHARE_DIR \
11 XDG_TEMPLATES_DIR \
12 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 @@
1# enable global menus
2# NOTE: Firefox and Thunderbird require this variable to be 0!
3
4export 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 @@
1# X.org environment variables
2# ~/.profile is sourced by LightDM
3
4# Xsession errors
5export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors"
6# Xsession RC
7export USERXSESSIONRC="$XDG_CONFIG_HOME/xorg/xsessionrc"
8# Xauthority --- though this doesn't work with LightDM (see
9# https://askubuntu.com/a/961459 for a workaround).
10export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"