ac3ec039e4d35ea9e63723692b173836776a3978
2 # Copyright (C) 2019 Ian Kelling
3 # SPDX-License-Identifier: AGPL-3.0-or-later
7 # redirect output to log file. this doesn't work. todo figure out why
8 #exec 1>>/a/tmp/bashlog
9 #exec 2>>/a/tmp/bashlog
12 # see comments in brc2 sl() function for background.
13 if [[ $SSH_CONNECTION ]] \
14 && [[ $BRC != t
]]; then
18 # the distinction between login and non-login shells is lame,
19 # get rid of it. note ssh shells normally its login if a command is passed
20 if ! shopt -q login_shell
; then
21 if [[ -r /etc
/profile
]]; then
24 # note, this is not exactly the same as a login shell, because that
25 # reads ~/.bash_profile or alternative, which usually just sources
26 # this file, and we don't want to do that and cause an infinite
29 _tmp
=$
(readlink
-f ${BASH_SOURCE[0]})
32 if [[ -s $_tmp2 ]]; then
33 # shellcheck source=./brc
36 # brc2 is for things i dont necessarily want on every system
38 if [[ -s $_tmp2 ]]; then
39 # shellcheck source=./brc2
42 # This check is for when running the sl() command,
43 # and the remote host got its type misidentified.
45 if [[ -s $_tmp2 ]]; then
46 # shellcheck source=./brc2
51 # ensure no bad programs appending to this file will have an affect