Add join_by as a globally available function

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-26 23:46:41 +02:00
parent 3ca07679ca
commit ddaeb1e935
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -8,6 +8,15 @@ source $HOME/.zsh/go-binaries.sh
## Local installed pip package binaries
export PATH=$PATH:$HOME/.local/bin
## Make join_by function globally available
function join_by() {
local d=$1
shift
echo -n "$1"
shift
printf "%s" "${@/#/$d}"
}
## Some default settings
export EDITOR=/usr/bin/nvim
export BROWSER=/bin/echo # enable usage of `hub browse` on remote machines