misc: .screenrc, config, functions & new scripts!

This commit is contained in:
2023-04-13 08:41:14 +03:00
parent 4b1feb16fc
commit d504fc5f2b
6 changed files with 100 additions and 0 deletions

View File

@@ -66,6 +66,23 @@ function silent
"$@" >&/dev/null
}
function path_remove
{
PATH=$(echo -n "$PATH" | awk -v RS=: -v ORS=: "\$0 != \"$1\"" | sed 's/:$//')
}
function path_append
{
path_remove "$1"
PATH="${PATH:+"$PATH:"}$1"
}
function path_prepend
{
path_remove "$1"
PATH="$1${PATH:+":$PATH"}"
}
# Defines default antigen bundles
function x-default-antigen-bundles
{