Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

|my profile runs a one liner... what's that one liner look like?


I 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




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: