←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.279s | source
Show context
apocalyptic0n3 ◴[] No.36498002[source]
`open` is one I use all the time. I love that simple command.

    alias tab='open . -a iterm'
    alias phpstorm='open -a "PhpStorm"'
    alias smerge='open -a "Sublime Merge"'
etc. I use those more than I do the Open/Recents dialogs in the respective apps.
replies(6): >>36498084 #>>36498873 #>>36499022 #>>36499642 #>>36499746 #>>36504000 #
movedx ◴[] No.36499642[source]
> alias tab='open . -a iterm'

But if you just open a new tab, you'll be in the same $CWD in the new tab? Am I missing some trick here?

replies(2): >>36499910 #>>36507329 #
1. andelink ◴[] No.36499910[source]
In your iterm profile settings, you can configure new tabs to go to either $HOME, $CWD, or a fixed specific directory. I've configured new windows and tabs to $HOME, but new split panes $CWD.