about summary refs log tree commit diff stats
path: root/profile
diff options
context:
space:
mode:
authorCase Duckworth2022-07-29 17:04:24 -0500
committerCase Duckworth2022-07-29 17:04:24 -0500
commite6c35b7b14ba815b82a7377f16b06801d68700ce (patch)
tree4f8bee7f6d54e9641a5fb1a6cd5a40cadd944d54 /profile
parentUpdate link (diff)
downloadetc-e6c35b7b14ba815b82a7377f16b06801d68700ce.tar.gz
etc-e6c35b7b14ba815b82a7377f16b06801d68700ce.zip
bleh
Diffstat (limited to 'profile')
-rw-r--r--profile/00_functions.sh5
-rw-r--r--profile/go.sh4
-rw-r--r--profile/infopath.sh4
-rw-r--r--profile/luarocks.sh2
-rw-r--r--profile/manpath.sh11
-rw-r--r--profile/ssh-agent.sh10
6 files changed, 21 insertions, 15 deletions
diff --git a/profile/00_functions.sh b/profile/00_functions.sh index 3c67ddf..4bf0c78 100644 --- a/profile/00_functions.sh +++ b/profile/00_functions.sh
@@ -62,3 +62,8 @@ path_add_unsafe() { #path_add_unsafe [-a] [-d DELIM] VAR PATH...
62 done 62 done
63 unset -v APPEND DELIM var 63 unset -v APPEND DELIM var
64} 64}
65
66# Re-source ~/.profile
67reprofile() {
68 . $HOME/.profile
69}
diff --git a/profile/go.sh b/profile/go.sh index 8b4ca26..205c881 100644 --- a/profile/go.sh +++ b/profile/go.sh
@@ -1,9 +1,9 @@
1export GOPATH="${XDG_DATA_HOME:=$HOME/.local/share}/go" 1export GOPATH="$HOME/src/go"
2 2
3# https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html 3# https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html
4export GOPROXY=direct 4export GOPROXY=direct
5 5
6# For the GO binary ... XXX: this is slightly clunky (~/usr/local/go/bin is the directory) 6# For the GO binary ... XXX: this is slightly clunky (~/usr/local/go/bin is the directory)
7path_add_to_PATH $(realpath "$XDG_DATA_HOME/../local/go/bin") 7path_add_to_PATH "$GOPATH/go/bin"
8 8
9command -v go >/dev/null 2>&1 && path_add_to_PATH "$(go env GOPATH)/bin" 9command -v go >/dev/null 2>&1 && path_add_to_PATH "$(go env GOPATH)/bin"
diff --git a/profile/infopath.sh b/profile/infopath.sh index 80080b8..92ecd72 100644 --- a/profile/infopath.sh +++ b/profile/infopath.sh
@@ -1,7 +1,7 @@
1# See 00_functions.sh for `path_add_unsafe'. 1# See 00_functions.sh for `path_add_unsafe'.
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:-$HOME/.local/share}/info"
6 6
7export INFOPATH 7export INFOPATH
diff --git a/profile/luarocks.sh b/profile/luarocks.sh index 547a94d..e6e1d24 100644 --- a/profile/luarocks.sh +++ b/profile/luarocks.sh
@@ -1,5 +1,5 @@
1# add luarocks stuff to $PATH 1# add luarocks stuff to $PATH
2 2
3if command -v luarocks >/dev/null 2>&1; then 3if command -v luarocks >/dev/null 2>&1; then
4 eval "$(luarocks path --bin)" 4 eval "$(luarocks path)"
5fi 5fi
diff --git a/profile/manpath.sh b/profile/manpath.sh index 944059c..9f310e8 100644 --- a/profile/manpath.sh +++ b/profile/manpath.sh
@@ -1,15 +1,16 @@
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:-$HOME/.local/share}/man" \
5 "$HOME/.local/local/man" \ 5 "$HOME/.local/local/man" \
6 "$HOME/usr/local/man" 6 "$HOME/usr/local/man" \
7 "$HOME/usr/man"
7 8
8# $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
9# special thing. 10# special thing.
10case "$MANPATH" in 11case "$MANPATH" in
11 *:) ;; 12*:) ;;
12 *) MANPATH="$MANPATH:" ;; 13*) MANPATH="$MANPATH:" ;;
13esac 14esac
14 15
15export MANPATH 16export MANPATH
diff --git a/profile/ssh-agent.sh b/profile/ssh-agent.sh index 7afb7c6..95669d5 100644 --- a/profile/ssh-agent.sh +++ b/profile/ssh-agent.sh
@@ -1,10 +1,10 @@
1# start the ssh-agent 1# start the ssh-agent
2 2
3# use keychain(1), if available 3# use keychain(1), if available
4if type keychain > /dev/null 2>&1; then 4if type keychain >/dev/null 2>&1; then
5 # Save directory name in a variable (for ease of maintenance) 5 # Save directory name in a variable (for ease of maintenance)
6 export KEYCHAIN_HOME="$XDG_RUNTIME_DIR/keychain" 6 export KEYCHAIN_HOME="$XDG_RUNTIME_DIR/keychain"
7 eval $(keychain --eval --dir "$KEYCHAIN_HOME" --agents ssh 2>/dev/null) 7 eval $(keychain --eval --dir "$KEYCHAIN_HOME" --agents ssh 2>/dev/null)
8else 8else
9 eval $(ssh-agent -s) 9 eval $(ssh-agent -s)
10fi 10fi