Replace path-dedup with more generic dedup script

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-11-08 17:14:43 +01:00
parent 9971c7f13d
commit 88668ce48d
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
2 changed files with 1 additions and 11 deletions

View file

@ -85,7 +85,7 @@ source ${HOME}/.zsh/peco.sh
}
## Clean PATH from duplicates
export PATH=$(${HOME}/bin/path-dedup.py)
export PATH=$(clean-str-dups.py : "${PATH}")
## Add custom auto-completions
export fpath=("${HOME}/.zsh/complete" $fpath)

View file

@ -1,10 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
out = []
[out.append(i) for i in os.environ["PATH"].split(":") if not out.count(i)]
print(":".join(out))