From 2ec857b1c26456a53fd84939e01199dc8d68c057 Mon Sep 17 00:00:00 2001 From: "kebler.net" Date: Thu, 28 Oct 2021 12:05:56 -0700 Subject: [PATCH] added add-repo-key function added skg for killing unowned processes by grep add 312 network to shell --- alias/00-basic | 1 + function/01-basic | 5 +++++ modules/acl.lib | 0 modules/utility/yaml.sh | 0 shell.env | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 modules/acl.lib mode change 100644 => 100755 modules/utility/yaml.sh mode change 100644 => 100755 shell.env diff --git a/alias/00-basic b/alias/00-basic index 407a12f..3e1465d 100644 --- a/alias/00-basic +++ b/alias/00-basic @@ -26,6 +26,7 @@ alias ka='killall' # kill processes greped alias skg='sudo pkill -f' alias kg='pkill -f' +alias skg='sudo pkill -f' alias df='df -h -x supermount' alias du='du -h' diff --git a/function/01-basic b/function/01-basic index 88f9a94..1500df6 100644 --- a/function/01-basic +++ b/function/01-basic @@ -82,3 +82,8 @@ grep -rnswl $1 -e $2 | more # edit files # set the system editor using EDITOR environment variable editor() { ${EDITOR} $1; } + +add-repo-key () { +gpg --keyserver keyserver.ubuntu.com --recv-key $1 +gpg -a --export $1 | sudo apt-key add - +} \ No newline at end of file diff --git a/modules/acl.lib b/modules/acl.lib old mode 100644 new mode 100755 diff --git a/modules/utility/yaml.sh b/modules/utility/yaml.sh old mode 100644 new mode 100755 diff --git a/shell.env b/shell.env old mode 100644 new mode 100755 index 3fd6857..5060d67 --- a/shell.env +++ b/shell.env @@ -56,7 +56,7 @@ export BASH_USE_ALIAS=true # will source aliases for non-interactive # make a directory of the same name # if unset then only /all will be sourced # TODO just read all directories in BASH_SHELL_NETWORK. -export NETWORK_DOMAINS=(238.kebler.net 645.kebler.net 3115.kebler.net) +export NETWORK_DOMAINS=(238.kebler.net 645.kebler.net 3115.kebler.net 312.kebler.net) # network domain folder entry will be made for each domain set, first is home domain, others via vpn if [[ $NETWORK_DOMAINS ]]; then export NETWORK_HOME=${NETWORK_DOMAINS[0]}