Fri, 12 Jan 2007
Moving things around?
I just learned this and thought it was a nice touch. Try the following:
wxs@stupid Desktop # mkdir foo bar wxs@stupid Desktop # ls -ld foo bar drwxr-xr-x 2 wxs wxs 68 Jan 12 20:25 bar/ drwxr-xr-x 2 wxs wxs 68 Jan 12 20:25 foo/ wxs@stupid Desktop # echo "hello world" > foo/file wxs@stupid Desktop #
Then cd foo && vi file and add some text. Before you hit :wq drag foo into bar using finder then save the file in vi. After you save it notice your working directory has changed to bar/foo and file was properly updated.
wxs@stupid foo # pwd /Users/wxs/Desktop/bar/foo wxs@stupid foo # cat file hello world goodbye world wxs@stupid foo #
I wonder if FreeBSD handles this...
posted at: 20:25 | tags: apple, os x | path: /entries/apple | permanent link to this entry








