iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix escaping issue
[distro-setup]
/
brc
diff --git
a/brc
b/brc
index 502be7e4e03a3f768c90bb08e6aad34cccb38492..bd76bb4c8265890c517bdff5f501556ed0d76bcb 100644
(file)
--- a/
brc
+++ b/
brc
@@
-238,8
+238,7
@@
export SL_INFO_DIR=/p/sshinfo
if [[ -s $bashrc_dir/path-add-function ]]; then
source $bashrc_dir/path-add-function
if [[ $SSH_CLIENT ]]; then
if [[ -s $bashrc_dir/path-add-function ]]; then
source $bashrc_dir/path-add-function
if [[ $SSH_CLIENT ]]; then
- # [[ -d /home/iank/.iank/e/e ]] mounts it unnecessarily, so use this.
- if grep -qF /home/iank/.iank/e/e /etc/auto.iank /etc/exports &>/dev/null; then
+ if grep -qF /home/iank/.iank/e/e /etc/exports &>/dev/null; then
export EMACSDIR=/home/iank/.iank/e/e
fi
path-add $bashrc_dir
export EMACSDIR=/home/iank/.iank/e/e
fi
path-add $bashrc_dir
@@
-1021,6
+1020,11
@@
ic() {
git commit -am "$*"
}
git commit -am "$*"
}
+ipp() {
+ git pull
+ git push
+}
+
ifn() {
# insensitive find
ifn() {
# insensitive find
@@
-1316,6
+1320,13
@@
rsu() { # [OPTS] HOST PATH
}
ccomp rsync rsd rsa rst rsu
}
ccomp rsync rsd rsa rst rsu
+# find programs listening on a port
+ssp() {
+ local port=$1
+ # to figure out these args, i had to look at the man page from git version, as of 2022-04.
+ s ss -lpn state listening sport = $port
+}
+
resolvcat() {
local f
if [[ $(systemctl is-active nscd ||:) != inactive ]]; then
resolvcat() {
local f
if [[ $(systemctl is-active nscd ||:) != inactive ]]; then
@@
-1323,7
+1334,7
@@
resolvcat() {
fi
f=/etc/resolv.conf
echo $f:; ccat $f
fi
f=/etc/resolv.conf
echo $f:; ccat $f
- hr; s ss -lpn
'sport = 53'
+ hr; s ss -lpn
sport = 53
if systemctl is-enabled dnsmasq &>/dev/null || [[ $(systemctl is-active dnsmasq ||:) != inactive ]]; then
# this will fail is dnsmasq is failed
hr; m ser status dnsmasq | cat || :
if systemctl is-enabled dnsmasq &>/dev/null || [[ $(systemctl is-active dnsmasq ||:) != inactive ]]; then
# this will fail is dnsmasq is failed
hr; m ser status dnsmasq | cat || :
@@
-2027,7
+2038,7
@@
if [[ $- == *i* ]]; then
if [[ -e /dev/shm/iank-status && ! -e /tmp/quiet-status ]]; then
eval $(< /dev/shm/iank-status)
fi
if [[ -e /dev/shm/iank-status && ! -e /tmp/quiet-status ]]; then
eval $(< /dev/shm/iank-status)
fi
- if [[
! $SSH_CLIEN
T && $MAIL_HOST != "$HOSTNAME" ]]; then
+ if [[
$MAIL_HOS
T && $MAIL_HOST != "$HOSTNAME" ]]; then
ps_char="@ $ps_char"
fi
# We could test if sudo is active with sudo -nv
ps_char="@ $ps_char"
fi
# We could test if sudo is active with sudo -nv