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

[fzf] Fix for non-interactive mode #390

Merged
merged 2 commits into from
Mar 1, 2019
Merged

[fzf] Fix for non-interactive mode #390

merged 2 commits into from
Mar 1, 2019

Conversation

osterman
Copy link
Member

@osterman osterman commented Mar 1, 2019

what

  • Disable bash completion for fzf if non-interactive terminal

why

@osterman osterman changed the title Fix fzf non-interactive mode [fzf] Fix for non-interactive mode Mar 1, 2019
@goruha goruha merged commit 77888c9 into master Mar 1, 2019
@goruha goruha deleted the fix-fzf-completion branch March 1, 2019 08:16
@tamsky tamsky self-requested a review March 1, 2019 21:19
@@ -0,0 +1,5 @@
# Install fzf shell completion when an interactive shell is enabled
# This is a fix for: `/etc/bash_completion.d/fzf.sh: line 34: bind: warning: line editing not enabled`
if [ -t 1 ]; then
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this our standard test method for detecting interactive shells?

I'm used to $PS1 or $-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants