Hacker News new | past | comments | ask | show | jobs | submit login

A related trick is to use parentheses to create a subshell, in the case where you have a fixed command sequence you want to execute in another directory but you don't want to stay there:

  $ pwd
  /tmp
  $ mkdir -p a/b/c
  $ ( cd a/b/c ; pwd )
  /tmp/a/b/c
  $ pwd
  /tmp



This is probably the thing I’m missing the most in fish shell.




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

Search: