Begin moving to new XDG compliant directory structure

This commit is contained in:
Marty Oehme 2019-02-24 11:06:50 +01:00
parent 50c1b6cacb
commit 5e50aafcd0
23 changed files with 27 additions and 8 deletions

View file

@ -1,19 +0,0 @@
# In case a plugin adds a redundant path entry, remove duplicate entries
# from PATH
#
# This snippet is from Mislav Marohnić <mislav.marohnic@gmail.com>'s
# dotfiles repo at https://github.com/mislav/dotfiles
dedupe_path() {
typeset -a paths result
paths=($path)
while [[ ${#paths} -gt 0 ]]; do
p="${paths[1]}"
shift paths
[[ -z ${paths[(r)$p]} ]] && result+="$p"
done
export PATH=${(j+:+)result}
}
dedupe_path