summaryrefslogtreecommitdiffstats
path: root/.zsh/functions/add-to-list
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-03 21:21:21 +0100
committerGravatar Tom Willemse2013-11-03 21:21:21 +0100
commit5c6cd059e8395d7f24d4b199e59c8c2f562dc438 (patch)
tree2e108e0724b5f5248de11c515312fa8c7c04ab4c /.zsh/functions/add-to-list
parentcca8771d855a3c8ba67bcb43a45967d9e4b6dd15 (diff)
downloaddotfiles-5c6cd059e8395d7f24d4b199e59c8c2f562dc438.tar.gz
dotfiles-5c6cd059e8395d7f24d4b199e59c8c2f562dc438.zip
New stow hierarchy
Diffstat (limited to '.zsh/functions/add-to-list')
-rw-r--r--.zsh/functions/add-to-list10
1 files changed, 0 insertions, 10 deletions
diff --git a/.zsh/functions/add-to-list b/.zsh/functions/add-to-list
deleted file mode 100644
index 18720e0..0000000
--- a/.zsh/functions/add-to-list
+++ /dev/null
@@ -1,10 +0,0 @@
-# -*- mode: sh; -*-
-if [[ ! "${(P)${1}}" =~ (^|:)"$2"(:|$) ]]; then
- if [ -n "$3" ]; then
- # Append
- typeset -g $1="${(P)${1}}:$2"
- else
- # Prepend
- typeset -g $1="$2:${(P)${1}}"
- fi
-fi