Replace path-dedup with more generic dedup script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9971c7f13d
commit
88668ce48d
2 changed files with 1 additions and 11 deletions
|
@ -85,7 +85,7 @@ source ${HOME}/.zsh/peco.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
## Clean PATH from duplicates
|
## Clean PATH from duplicates
|
||||||
export PATH=$(${HOME}/bin/path-dedup.py)
|
export PATH=$(clean-str-dups.py : "${PATH}")
|
||||||
|
|
||||||
## Add custom auto-completions
|
## Add custom auto-completions
|
||||||
export fpath=("${HOME}/.zsh/complete" $fpath)
|
export fpath=("${HOME}/.zsh/complete" $fpath)
|
||||||
|
|
|
@ -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))
|
|
Loading…
Add table
Reference in a new issue