about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-01-30 12:24:24 -0600
committerCase Duckworth2023-01-30 12:24:24 -0600
commit21fac388f96806e234c6c354a35b40ea7d8076a6 (patch)
treeff1cd529556f93b04fe08c4025cc60d7198ca077
parentBootstrap! (diff)
downloadetc-21fac388f96806e234c6c354a35b40ea7d8076a6.tar.gz
etc-21fac388f96806e234c6c354a35b40ea7d8076a6.zip
Profile!
-rw-r--r--profile/01_path.sh19
-rw-r--r--profile/defaults.sh4
-rw-r--r--profile/etc.sh2
-rw-r--r--profile/go.sh2
-rw-r--r--profile/infopath.sh2
-rw-r--r--profile/manpath.sh8
-rw-r--r--profile/profile2
7 files changed, 27 insertions, 12 deletions
diff --git a/profile/01_path.sh b/profile/01_path.sh index b5856e8..6675241 100644 --- a/profile/01_path.sh +++ b/profile/01_path.sh
@@ -1,4 +1,19 @@
1# PATH 1# PATH and variables for $HOME-local installations
2
3LOCAL_PREFIX="$LOCAL_PATH"
4export LOCAL_PREFIX
5
6# Pkg-config
7path_add_unsafe PKG_CONFIG_PATH "$LOCAL_PREFIX/lib/pkgconfig"
8export PKG_CONFIG_PATH
9
10# LD_LIBRARY_PATH
11path_add_unsafe LD_LIBRARY_PATH "$LOCAL_PREFIX/lib"
12export LD_LIBRARY_PATH
2 13
3# see 00_functions.sh for `path_add' 14# see 00_functions.sh for `path_add'
4path_add_to_PATH "$HOME/bin" "$HOME/usr/bin" "$HOME/usr/scripts" 15path_add_to_PATH \
16 "$HOME/bin" \
17 "$LOCAL_PREFIX/bin" \
18 "$LOCAL_PREFIX/scripts" \
19 "$LOCAL_PREFIX/games/"
diff --git a/profile/defaults.sh b/profile/defaults.sh index 4ee51d2..c158df5 100644 --- a/profile/defaults.sh +++ b/profile/defaults.sh
@@ -1,7 +1,5 @@
1# Default programs 1# Default programs
2 2
3export EDITOR="$(which emacsclient) -nc" 3export EDITOR="$(which em)" # emacs but like, better-er
4export ALTERNATE_EDITOR= 4export ALTERNATE_EDITOR=
5export VISUAL="$EDITOR" 5export VISUAL="$EDITOR"
6
7alias e="$EDITOR"
diff --git a/profile/etc.sh b/profile/etc.sh index 0546fe2..151e229 100644 --- a/profile/etc.sh +++ b/profile/etc.sh
@@ -10,5 +10,5 @@ export CDPATH=:~ # thanks june :)
10#export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc" 10#export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
11#export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" 11#export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
12#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" 12#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
13#export SVDIR="$HOME/.local/service" 13#export SVDIR="$LOCAL_PREFIX/service"
14#export INFOPATH="$INFOPATH:/usr/share/info" 14#export INFOPATH="$INFOPATH:/usr/share/info"
diff --git a/profile/go.sh b/profile/go.sh index 205c881..baa4187 100644 --- a/profile/go.sh +++ b/profile/go.sh
@@ -1,3 +1,5 @@
1# Go
2
1export GOPATH="$HOME/src/go" 3export GOPATH="$HOME/src/go"
2 4
3# https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html 5# https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html
diff --git a/profile/infopath.sh b/profile/infopath.sh index 92ecd72..b663d20 100644 --- a/profile/infopath.sh +++ b/profile/infopath.sh
@@ -2,6 +2,6 @@
2 2
3path_add_unsafe INFOPATH \ 3path_add_unsafe INFOPATH \
4 /usr/share/info \ 4 /usr/share/info \
5 "${XDG_DATA_HOME:-$HOME/.local/share}/info" 5 "${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/info"
6 6
7export INFOPATH 7export INFOPATH
diff --git a/profile/manpath.sh b/profile/manpath.sh index 9f310e8..b52f5f8 100644 --- a/profile/manpath.sh +++ b/profile/manpath.sh
@@ -1,10 +1,10 @@
1# See 00_functions.sh for `path_add_unsafe'. 1# See 00_functions.sh for `path_add_unsafe'.
2 2
3path_add_unsafe MANPATH \ 3path_add_unsafe MANPATH \
4 "${XDG_DATA_HOME:-$HOME/.local/share}/man" \ 4 "${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/man" \
5 "$HOME/.local/local/man" \ 5 "$LOCAL_PREFIX/local/man" \
6 "$HOME/usr/local/man" \ 6 "$LOCAL_PATH/local/man" \
7 "$HOME/usr/man" 7 "$LOCAL_PATH/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/profile b/profile/profile index a531e8e..9a81186 100644 --- a/profile/profile +++ b/profile/profile
@@ -7,7 +7,7 @@ source /etc/profile
7# XDG directories 7# XDG directories
8export XDG_CONFIG_HOME="$HOME/etc" 8export XDG_CONFIG_HOME="$HOME/etc"
9export XDG_CACHE_HOME="$HOME/var/cache" 9export XDG_CACHE_HOME="$HOME/var/cache"
10export XDG_DATA_HOME="$HOME/usr/share" 10export XDG_DATA_HOME="$LOCAL_PATH/share"
11 11
12export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" 12export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
13export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" 13export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}"