peroonの日記

Open terminal new tab in current directory (mac, zsh)

$vi ~/.zshrc

--

#copy pwd to clipboard
alias t='pwd | pbcopy'

#cd without type it
setopt auto_cd
$source ~/.zshrc
How to use

Before cd, 
$t (Enter)

And open new tab (command+T)

Then, paste directory (automatically cd)
$ (command+V)
t, Enter, command+T, command+V

typeNum = 4