Skip to content

Commit

Permalink
[fzf] Create symlink conditionally (cloudposse#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored and Nuru committed Mar 2, 2019
1 parent 4b6ef4f commit 584dacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/profile.d/fzf.sh
Original file line number Diff line number Diff line change
@@ -1,5 +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
if [ -t 1 ] && ! [ -e '/etc/bash_completion.d/fzf.sh' ]; then
ln -s /usr/share/bash-completion/completions/fzf /etc/bash_completion.d/fzf.sh
fi

0 comments on commit 584dacb

Please sign in to comment.