diff options
author | Case Duckworth | 2023-04-16 17:06:22 -0500 |
---|---|---|
committer | Case Duckworth | 2023-04-16 17:06:22 -0500 |
commit | 3b177d8c95f70db8e27fd046711f480e81ea3fa7 (patch) | |
tree | 078459e4b3ae19c9978a12ea24ade3d336f2345a /profile | |
parent | Add a bunch of stuff (diff) | |
download | etc-3b177d8c95f70db8e27fd046711f480e81ea3fa7.tar.gz etc-3b177d8c95f70db8e27fd046711f480e81ea3fa7.zip |
uhhhh
Diffstat (limited to 'profile')
-rw-r--r-- | profile/01_path.sh | 2 | ||||
-rw-r--r-- | profile/manpath.sh | 4 | ||||
-rw-r--r-- | profile/nodejs.sh | 2 | ||||
-rw-r--r-- | profile/profile | 5 | ||||
-rw-r--r-- | profile/python.sh | 5 | ||||
-rw-r--r-- | profile/xdg.sh | 55 |
6 files changed, 59 insertions, 14 deletions
diff --git a/profile/01_path.sh b/profile/01_path.sh index 6675241..8b18f5e 100644 --- a/profile/01_path.sh +++ b/profile/01_path.sh | |||
@@ -1,6 +1,6 @@ | |||
1 | # PATH and variables for $HOME-local installations | 1 | # PATH and variables for $HOME-local installations |
2 | 2 | ||
3 | LOCAL_PREFIX="$LOCAL_PATH" | 3 | LOCAL_PREFIX="$HOME/usr" |
4 | export LOCAL_PREFIX | 4 | export LOCAL_PREFIX |
5 | 5 | ||
6 | # Pkg-config | 6 | # Pkg-config |
diff --git a/profile/manpath.sh b/profile/manpath.sh index b52f5f8..bda4fd2 100644 --- a/profile/manpath.sh +++ b/profile/manpath.sh | |||
@@ -3,8 +3,8 @@ | |||
3 | path_add_unsafe MANPATH \ | 3 | path_add_unsafe MANPATH \ |
4 | "${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/man" \ | 4 | "${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/man" \ |
5 | "$LOCAL_PREFIX/local/man" \ | 5 | "$LOCAL_PREFIX/local/man" \ |
6 | "$LOCAL_PATH/local/man" \ | 6 | "$LOCAL_PREFIX/local/man" \ |
7 | "$LOCAL_PATH/man" | 7 | "$LOCAL_PREFIX/man" |
8 | 8 | ||
9 | # $MANPATH ends with `:' so that manpath(1) will prepend it to its | 9 | # $MANPATH ends with `:' so that manpath(1) will prepend it to its |
10 | # special thing. | 10 | # special thing. |
diff --git a/profile/nodejs.sh b/profile/nodejs.sh index 6d95dea..224dbbe 100644 --- a/profile/nodejs.sh +++ b/profile/nodejs.sh | |||
@@ -1,3 +1,3 @@ | |||
1 | # node.js environment | 1 | # node.js environment |
2 | 2 | ||
3 | export npm_config_prefix="$LOCAL_PATH" | 3 | export npm_config_prefix="$LOCAL_PREFIX" |
diff --git a/profile/profile b/profile/profile index 9a81186..5faff51 100644 --- a/profile/profile +++ b/profile/profile | |||
@@ -4,10 +4,13 @@ | |||
4 | # Source system profile | 4 | # Source system profile |
5 | source /etc/profile | 5 | source /etc/profile |
6 | 6 | ||
7 | # Local prefix | ||
8 | export LOCAL_PREFIX="$HOME/usr" | ||
9 | |||
7 | # XDG directories | 10 | # XDG directories |
8 | export XDG_CONFIG_HOME="$HOME/etc" | 11 | export XDG_CONFIG_HOME="$HOME/etc" |
9 | export XDG_CACHE_HOME="$HOME/var/cache" | 12 | export XDG_CACHE_HOME="$HOME/var/cache" |
10 | export XDG_DATA_HOME="$LOCAL_PATH/share" | 13 | export XDG_DATA_HOME="$LOCAL_PREFIX/share" |
11 | 14 | ||
12 | export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" | 15 | export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" |
13 | export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" | 16 | export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" |
diff --git a/profile/python.sh b/profile/python.sh index 80d4ee2..9353cfe 100644 --- a/profile/python.sh +++ b/profile/python.sh | |||
@@ -3,4 +3,7 @@ | |||
3 | # sometimes it's unavoidable. | 3 | # sometimes it's unavoidable. |
4 | 4 | ||
5 | # from grym on #emacs --- TODO: research what this actually does, lol | 5 | # from grym on #emacs --- TODO: research what this actually does, lol |
6 | export PIP_REQUIRE_VIRTUALENV=1 | 6 | # it's annoying ... (2023-02-08) |
7 | #export PIP_REQUIRE_VIRTUALENV=1 | ||
8 | |||
9 | path_add_to_PATH "$XDG_DATA_HOME/python/bin" | ||
diff --git a/profile/xdg.sh b/profile/xdg.sh index e11c5df..a4e395f 100644 --- a/profile/xdg.sh +++ b/profile/xdg.sh | |||
@@ -4,15 +4,17 @@ | |||
4 | # moved there (e.g., HISTFILE is in history.bash). So variables might | 4 | # moved there (e.g., HISTFILE is in history.bash). So variables might |
5 | # move /out/ of this directory, but they probably won't move /in/. | 5 | # move /out/ of this directory, but they probably won't move /in/. |
6 | 6 | ||
7 | # See also [[https://github.com/b3nj5m1n/xdg-ninja][xdg-ninja]]. | 7 | # See also https://github.com/b3nj5m1n/xdg-ninja, |
8 | # https://wiki.archlinux.org/title/XDG_Base_Directory#Support | ||
8 | 9 | ||
9 | # Readline | 10 | # Readline |
10 | export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc | 11 | export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" |
12 | export RLWRAP_HOME="$XDG_DATA_HOME/rlwrap" | ||
11 | 13 | ||
12 | # Less | 14 | # Less |
13 | export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey | 15 | export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" |
14 | export LESSHISTFILE="$XDG_CACHE_HOME"/less/history | 16 | export LESSHISTFILE="$XDG_CACHE_HOME/less/history" |
15 | mkdir -p "$XDG_CACHE_HOME"/less | 17 | mkdir -p "$XDG_CACHE_HOME/less" |
16 | 18 | ||
17 | # Vim | 19 | # Vim |
18 | export VIMINIT="source ${XDG_CONFIG_HOME:=$HOME/.config}/vim/vimrc" | 20 | export VIMINIT="source ${XDG_CONFIG_HOME:=$HOME/.config}/vim/vimrc" |
@@ -27,9 +29,14 @@ export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg" | |||
27 | export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME}" | 29 | export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME}" |
28 | export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" | 30 | export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" |
29 | export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" | 31 | export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" |
32 | export USERXSESSION="$XDG_CACHE_HOME/X11/xsession" | ||
33 | export ALTUSERXSESSION="$XDG_CACHE_HOME/X11/Xsession" | ||
34 | export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors" | ||
30 | 35 | ||
31 | # Notmuch | 36 | |
32 | export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:=$HOME/.config}/notmuch/config" | 37 | |
38 | # Notmuch -- https://notmuchmail.org/pipermail/notmuch/2011/007007.html | ||
39 | export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:=$HOME/.config}/notmuch/default/config" | ||
33 | 40 | ||
34 | # GNUPG | 41 | # GNUPG |
35 | export GNUPGHOME="$XDG_DATA_HOME/gnupg" | 42 | export GNUPGHOME="$XDG_DATA_HOME/gnupg" |
@@ -39,7 +46,39 @@ export ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority" | |||
39 | 46 | ||
40 | # mbsync (requires alias) | 47 | # mbsync (requires alias) |
41 | export MBSYNC_CONFIG_HOME="$XDG_CONFIG_HOME/isync/mbsyncrc" | 48 | export MBSYNC_CONFIG_HOME="$XDG_CONFIG_HOME/isync/mbsyncrc" |
42 | alias mbsync='mbsync -c "$MBSYNC_CONFIG_HOME"' | 49 | alias mbsync='command mbsync -c "$MBSYNC_CONFIG_HOME"' |
43 | 50 | ||
44 | # npm | 51 | # npm |
45 | export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" | 52 | export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" |
53 | |||
54 | # bash-complete | ||
55 | export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME/bash/completion" | ||
56 | |||
57 | # aspell | ||
58 | ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf" | ||
59 | ASPELL_CONF="$ASPELL_CONF; personal $XDG_CONFIG_HOME/aspell/en.pws" | ||
60 | ASPELL_CONF="$ASPELL_CONF; repl $XDG_CONFIG_HOME/aspell/en.prepl" | ||
61 | mkdir -p "$XDG_CONFIG_HOME/aspell" | ||
62 | export ASPELL_CONF | ||
63 | |||
64 | # Xcompose | ||
65 | export XCOMPOSEFILE="$XDG_CONFIG_HOME/xorg/xcompose" | ||
66 | export XCOMPOSECACHE="$XDG_CACHE_HOME/xorg/xcompose" | ||
67 | |||
68 | # sqlite | ||
69 | export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history" | ||
70 | alias sqlite3='sqlite3 -init "$XDG_CONFIG_HOME/sqlite3/sqliterc"' | ||
71 | |||
72 | # python | ||
73 | export PYTHONSTARTUPFILE="$XDG_CONFIG_HOME/python/startup" | ||
74 | export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME/python" | ||
75 | export PYTHON_EGG_CACHE="$XDG_CACHE_HOME/python/eggs" | ||
76 | export PYTHONUSERBASE="$XDG_DATA_HOME/python" | ||
77 | |||
78 | # wget | ||
79 | export WGETRC="$XDG_CONFIG_HOME/wget/config" | ||
80 | mkdir -p "$XDG_CONFIG_HOME/wget" | ||
81 | alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' | ||
82 | |||
83 | # dvdcss | ||
84 | export DVDCSS_HOME="$XDG_CACHE_HOME/dvdcss" | ||