Add join_by as a globally available function
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3ca07679ca
commit
ddaeb1e935
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue