Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not call chpwd hooks in setup.zsh #613

Merged
merged 1 commit into from
Apr 4, 2014
Merged

Conversation

miikka
Copy link
Contributor

@miikka miikka commented Apr 4, 2014

By default, cd'ing on zsh calls the shell function chpwd. This is commonly used for things like showing the current directory in the title terminal by printing a string with some escape codes, but this breaks _CATKIN_SETUP_DIR. -q disables the chpwd hooks.

The zshbuiltins(1) man page writes about -q: "If the -q (quiet) option is specified, the hook function chpwd and the functions in the array chpwd_functions are not called. This is useful for calls to cd that do not change the environment seen by an interactive user."

By default, cd'ing on zsh calls the shell function chpwd. This is commonly used for things like showing the current directory in the title terminal by printing a string with some escape codes, but this breaks _CATKIN_SETUP_DIR. `-q` disables the chpwd hooks.

The zshbuiltins(1) man page writes about -q: "If  the -q (quiet) option is specified, the hook function chpwd and the functions in the array chpwd_functions are not called. This is useful for calls to cd that do not change the environment seen by an interactive user."
@dirk-thomas dirk-thomas added the bug label Apr 4, 2014
dirk-thomas added a commit that referenced this pull request Apr 4, 2014
Do not call chpwd hooks in setup.zsh
@dirk-thomas dirk-thomas merged commit 23097ad into ros:indigo-devel Apr 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants