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

Nice little helper function, thank you. What do you think about renaming it to '..'? For me this feels a bit more natural:

  function ..() { for i in $(seq 1 $1); do cd ..; done }

  ..    # goes up 1 dir
  .. 2  # goes up 2 dirs 
  .. 42 # goes up 42 dirs


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

Search: