Merge pull request #514 from nwinkler/osx-tabs
Added check for OS X update_terminal_cwd
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
cite about-plugin
|
||||
about-plugin 'osx-specific functions'
|
||||
|
||||
# OS X: Open new tabs in same directory
|
||||
if [ $(uname) = "Darwin" ]; then
|
||||
if type update_terminal_cwd > /dev/null 2>&1 ; then
|
||||
if ! [[ $PROMPT_COMMAND =~ (^|;)update_terminal_cwd($|;) ]] ; then
|
||||
export PROMPT_COMMAND="update_terminal_cwd;$PROMPT_COMMAND"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
function tab() {
|
||||
about 'opens a new terminal tab'
|
||||
group 'osx'
|
||||
|
||||
Reference in New Issue
Block a user