---
title: "Dedupe your shell paths"
description: "If you have ever ran and see duplicate entries it's likely that you have duplicate entries in your $PATH. You can clean this up with a one liner at the end..."
date: 2022-03-04
published: false
tags:
  - linux
  - cli
template: til
---


If you have ever ran `which <command>` and see duplicate entries it's likely
that you have duplicate entries in your $PATH.  You can clean this up with a
one liner at the end of your bashrc or zshrc.

``` bash
eval "typeset -U path"
```
