uniq doesn't filter duplicates that aren't consecutive, use sort -u

This commit is contained in:
Jan Kanis 2011-09-23 21:59:50 +02:00
parent 7ef0b3b821
commit a060cc5893

View file

@ -1,4 +1,3 @@
function __fish_complete_proc --description 'Complete by list of running processes'
ps a --no-headers --format comm | uniq
ps a --no-headers --format comm | sort -u
end