6 ms·
|my profile runs a one liner... what's that one liner look like?
by awayand 14y ago
|my profile runs a one liner...
what's that one liner look like?
- 4ad 14y agoI lied, seems to be 5 lines total :-) export CDPATH=.:~ cdpaths="$([ -d ~/src ] && find ~/src -mindepth 1 -type d | egrep -v '/(\.)|_[a-zA-Z0-9]' | egrep -v '(bin)|(cmd)|(doc)|(lib)|(pkg)|(test)' | xargs -n1 dirname | uniq)" for i in $cdpaths; do CDPATH=$CDPATH:$i done