diff options
author | Tyler Davis <tyler@gluecode.net> | 2024-05-16 20:30:20 +0000 |
---|---|---|
committer | Tyler Davis <tyler@gluecode.net> | 2024-05-16 20:30:20 +0000 |
commit | ab6d71145d02d2666c1f8625a3115509b5b59585 (patch) | |
tree | c794e2b334009231d41541ff79272e5e42758454 /.profile | |
parent | 528815b7680e64904e83a10bbd34cd59908ad57a (diff) | |
download | dotfiles-ab6d71145d02d2666c1f8625a3115509b5b59585.tar.gz dotfiles-ab6d71145d02d2666c1f8625a3115509b5b59585.zip |
sh: add path deduplication
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -125,9 +125,7 @@ alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # dotfiles config --local status.showUntrackedFiles no ## == END DOTFILES == -# Prompt -#USER=$(id -un) -#HOSTNAME=$(uname -n) +export PATH=`printf %s "$PATH" | awk -v RS=: '{ if (!arr[$0]++) {printf("%s%s",!ln++?"":":",$0)}}'` export HISTFILE=~/.history export HISTSIZE=10000 |