diff options
author | Case Duckworth | 2022-07-29 17:04:24 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-29 17:04:24 -0500 |
commit | e6c35b7b14ba815b82a7377f16b06801d68700ce (patch) | |
tree | 4f8bee7f6d54e9641a5fb1a6cd5a40cadd944d54 /profile | |
parent | Update link (diff) | |
download | etc-e6c35b7b14ba815b82a7377f16b06801d68700ce.tar.gz etc-e6c35b7b14ba815b82a7377f16b06801d68700ce.zip |
bleh
Diffstat (limited to 'profile')
-rw-r--r-- | profile/00_functions.sh | 5 | ||||
-rw-r--r-- | profile/go.sh | 4 | ||||
-rw-r--r-- | profile/infopath.sh | 4 | ||||
-rw-r--r-- | profile/luarocks.sh | 2 | ||||
-rw-r--r-- | profile/manpath.sh | 11 | ||||
-rw-r--r-- | profile/ssh-agent.sh | 10 |
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 | ||
67 | reprofile() { | ||
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 @@ | |||
1 | export GOPATH="${XDG_DATA_HOME:=$HOME/.local/share}/go" | 1 | export 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 |
4 | export GOPROXY=direct | 4 | export 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) |
7 | path_add_to_PATH $(realpath "$XDG_DATA_HOME/../local/go/bin") | 7 | path_add_to_PATH "$GOPATH/go/bin" |
8 | 8 | ||
9 | command -v go >/dev/null 2>&1 && path_add_to_PATH "$(go env GOPATH)/bin" | 9 | command -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 | ||
3 | path_add_unsafe INFOPATH \ | 3 | path_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 | ||
7 | export INFOPATH | 7 | export 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 | ||
3 | if command -v luarocks >/dev/null 2>&1; then | 3 | if command -v luarocks >/dev/null 2>&1; then |
4 | eval "$(luarocks path --bin)" | 4 | eval "$(luarocks path)" |
5 | fi | 5 | fi |
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 | ||
3 | path_add_unsafe MANPATH \ | 3 | path_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. |
10 | case "$MANPATH" in | 11 | case "$MANPATH" in |
11 | *:) ;; | 12 | *:) ;; |
12 | *) MANPATH="$MANPATH:" ;; | 13 | *) MANPATH="$MANPATH:" ;; |
13 | esac | 14 | esac |
14 | 15 | ||
15 | export MANPATH | 16 | export 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 |
4 | if type keychain > /dev/null 2>&1; then | 4 | if 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) |
8 | else | 8 | else |
9 | eval $(ssh-agent -s) | 9 | eval $(ssh-agent -s) |
10 | fi | 10 | fi |