blob: a7bdcb506a8687740e21911a25c39be7eea936bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#!/usr/bin/env bash
# vim:syntax=sh
# shellcheck disable=SC2034,SC1091
# default Byobu session name
export BSNAME="CHANGEME"
# default screenshot target. Feel free to override in .local.
export SCRSHDIR="${HOME}/Pictures"
# variables for SSH, override in .local:
export SSHHOME="${HOME}/.ssh"
# 1. key files, array:
SSHKEYS=( "${SSHHOME}/id_ed25519" "${SSHHOME}/id_rsa" )
# 3. Hosts on which ssh-agent should run, FQDN. Array.
# Typically, "hosts" will equal your workstations. See ssh_config(5) (esp. ForwardAgent)
# Interpreted by fgrep / grep -F.
SSHAGH=( "riesling.example.com" "schorle.example.com" )
SSHAGH+=( "woschd.example.com" )
export SSHAGH
# ----- SHELL ----- #
for pa in "/usr/local/bin" "${HOME}/bin" "${HOME}/.local/bin" "${HOME}/go/bin";do
if [ -x "$pa" ]; then
if ! printf "%b" "$PATH"|grep -P "^${pa}:|:${pa}:" >/dev/null;then
export PATH="${pa}:${PATH}"
fi
fi
done
# $OSNAME
if [ -r "/etc/os-release" ];then
OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1)"
elif [ -r "/etc/redhat-release" ];then
grep -P "^Red[\ ]?[Hh]at" /etc/redhat-release >/dev/null 2>&1 && OSNAME="redhat"
grep -P "^[Ff]edora" /etc/redhat-release >/dev/null 2>&1 && OSNAME="fedora"
| 2022-06-24 | 1 | -0/+3 |
|
| | |
|
| | |
|