summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--fzf-completion.bash10
-rwxr-xr-xinstall6
-rwxr-xr-xuninstall2
4 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index c5e345af..679c8f19 100644
--- a/README.md
+++ b/README.md
@@ -476,7 +476,7 @@ speed of the traversal.
```sh
# Copy the original fzf function to __fzf
declare -f __fzf > /dev/null ||
- eval "$(echo "__fzf() {"; declare -f fzf | grep -v '^{' | tail -n +2)"
+ eval "$(echo "__fzf() {"; declare -f fzf | \grep -v '^{' | tail -n +2)"
# Use git ls-tree when possible
fzf() {
diff --git a/fzf-completion.bash b/fzf-completion.bash
index 21130baa..ebee4d27 100644
--- a/fzf-completion.bash
+++ b/fzf-completion.bash
@@ -119,7 +119,7 @@ _fzf_list_completion() {
elif [ -n "$_fzf_completion_loader" ]; then
_completion_loader "$@"
ret=$?
- eval $(complete | grep "\-F.* $cmd$" | _fzf_orig_completion_filter)
+ eval $(complete | \grep "\-F.* $cmd$" | _fzf_orig_completion_filter)
source $BASH_SOURCE
return $ret
fi
@@ -160,13 +160,13 @@ _fzf_kill_completion() {
_fzf_telnet_completion() {
_fzf_list_completion '+m' "$@" << "EOF"
- grep -v '^\s*\(#\|$\)' /etc/hosts | awk '{if (length($2) > 0) {print $2}}' | sort -u
+ \grep -v '^\s*\(#\|$\)' /etc/hosts | awk '{if (length($2) > 0) {print $2}}' | sort -u
EOF
}
_fzf_ssh_completion() {
_fzf_list_completion '+m' "$@" << "EOF"
- cat <(cat ~/.ssh/config /etc/ssh/ssh_config 2> /dev/null | grep -i ^host | grep -v '*') <(grep -v '^\s*\(#\|$\)' /etc/hosts) | awk '{print $2}' | sort -u
+ cat <(cat ~/.ssh/config /etc/ssh/ssh_config 2> /dev/null | \grep -i ^host | \grep -v '*') <(\grep -v '^\s*\(#\|$\)' /etc/hosts) | awk '{print $2}' | sort -u
EOF
}
@@ -201,8 +201,8 @@ x_cmds="kill ssh telnet unset unalias export"
# Preserve existing completion
if [ "$_fzf_completion_loaded" != '0.8.6-1' ]; then
# Really wish I could use associative array but OSX comes with bash 3.2 :(
- eval $(complete | grep '\-F' | grep -v _fzf_ |
- grep -E " ($(echo $d_cmds $f_cmds $a_cmds $x_cmds | sed 's/ /|/g' | sed 's/+/\\+/g'))$" | _fzf_orig_completion_filter)
+ eval $(complete | \grep '\-F' | \grep -v _fzf_ |
+ \grep -E " ($(echo $d_cmds $f_cmds $a_cmds $x_cmds | sed 's/ /|/g' | sed 's/+/\\+/g'))$" | _fzf_orig_completion_filter)
export _fzf_completion_loaded=0.8.6-1
fi
diff --git a/install b/install
index e69b3f33..fd16ac10 100755
--- a/install
+++ b/install
@@ -132,7 +132,7 @@ __fcd() {
__use_tmux=0
[ -n "$TMUX_PANE" -a ${FZF_TMUX:-1} -ne 0 -a ${LINES:-40} -gt 15 ] && __use_tmux=1
-if [ -z "$(set -o | grep '^vi.*on')" ]; then
+if [ -z "$(set -o | \grep '^vi.*on')" ]; then
# Required to refresh the prompt after fzf
bind '"\er": redraw-current-line'
@@ -316,7 +316,7 @@ function fzf_key_bindings
else
set height 40%
end
- if echo $height | grep -q -E '%$'
+ if echo $height | \grep -q -E '%$'
echo "-p "(echo $height | sed 's/%$//')
else
echo "-l $height"
@@ -337,7 +337,7 @@ append_line() {
echo "Update $2:"
echo " - $1"
[ -f "$2" ] || touch "$2"
- line=$(grep -nF "$1" "$2" | sed 's/:.*//')
+ line=$(\grep -nF "$1" "$2" | sed 's/:.*//')
if [ -n "$line" ]; then
echo " - Already exists (line #$line)"
else
diff --git a/uninstall b/uninstall
index 786ebef3..d5fab9ac 100755
--- a/uninstall
+++ b/uninstall
@@ -29,7 +29,7 @@ remove_line() {
line_no=1
match=0
while [ 1 ]; do
- line=$(sed -n "$line_no,\$p" "$src" | grep -m1 -nF "$1") || break
+ line=$(sed -n "$line_no,\$p" "$src" | \grep -m1 -nF "$1") || break
line_no=$(( $(sed 's/:.*//' <<< "$line") + line_no - 1 ))
content=$(sed 's/^[0-9]*://' <<< "$line")
match=1