legacy-dotfiles/zsh/.zsh/functions/add_to_list

5 lines
109 B
Text
Raw Normal View History

2014-07-01 22:53:27 +02:00
# -*- mode: sh; -*-
if [[ "${(P)${1}}" =~ (^|:)"$2"(:|$) ]]; then; else
typeset -g $1="${(P)${1}}:$2"
fi