Skip to content
Snippets Groups Projects
Commit 77d45cb1 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Avoid starting interactive bash (#34)

parent d83febea
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ export -f fzf > /dev/null
# Auto-completion
# ---------------
$fzf_completion
[[ \$- =~ i ]] && $fzf_completion
EOF
......@@ -98,8 +98,6 @@ EOF
cat >> $src << "EOFZF"
# Key bindings
# ------------
if [[ $- =~ i ]]; then
__fsel() {
find * -path '*/\.*' -prune \
-o -type f -print \
......@@ -110,6 +108,8 @@ __fsel() {
echo
}
if [[ $- =~ i ]]; then
__fsel_tmux() {
local height
height=${FZF_TMUX_HEIGHT:-40%}
......@@ -118,7 +118,7 @@ __fsel_tmux() {
else
height="-l $height"
fi
tmux split-window $height "bash -ci 'source ~/.fzf.bash; tmux send-keys -t $TMUX_PANE \"\$(__fsel)\"'"
tmux split-window $height "bash -c 'source ~/.fzf.bash; tmux send-keys -t $TMUX_PANE \"\$(__fsel)\"'"
}
__fcd() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment