Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fzf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
fzf
Commits
5a0afc5f
Commit
5a0afc5f
authored
10 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Plain Diff
Merge branch 'aboettger-master'
parents
05da892c
f37be006
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install
+1
-1
1 addition, 1 deletion
install
uninstall
+45
-0
45 additions, 0 deletions
uninstall
with
46 additions
and
1 deletion
install
+
1
−
1
View file @
5a0afc5f
...
...
@@ -345,7 +345,7 @@ Finished. Restart your shell or reload config file.
EOF
[
$has_fish
-eq
1
]
&&
echo
" fzf_key_bindings # fish"
;
cat
<<
EOF
To
uninstall
fzf, simply remove the added lines
.
Use
uninstall
script to remove fzf
.
For more information, see: https://github.com/junegunn/fzf
EOF
...
...
This diff is collapsed.
Click to expand it.
uninstall
0 → 100755
+
45
−
0
View file @
5a0afc5f
#!/bin/bash
remove_line
()
{
src
=
$(
readlink
"
$2
"
)
if
[
$?
-eq
0
]
;
then
echo
"Remove from
$2
(
$src
):"
else
src
=
$2
echo
"Remove from
$2
:"
fi
echo
" -
$1
"
changed
=
0
while
[
1
]
;
do
line
=
$(
grep
-m1
-nF
"
$1
"
"
$src
"
)
||
break
line_no
=
$(
sed
's/:.*//'
<<<
"
$line
"
)
echo
" - Remove line (
$line
)"
awk
-v
n
=
$line_no
'NR == n {next} {print}'
"
$src
"
>
"
$src
.bak"
&&
mv
"
$src
.bak"
"
$src
"
||
break
changed
=
1
done
[
$changed
-eq
0
]
&&
echo
" - Nothing found"
echo
}
for
shell
in
bash zsh
;
do
rm
-f
~/.fzf.
${
shell
}
remove_line
"source ~/.fzf.
${
shell
}
"
~/.
${
shell
}
rc
done
bind_file
=
~/.config/fish/functions/fish_user_key_bindings.fish
if
[
-f
"
$bind_file
"
]
;
then
remove_line
"fzf_key_bindings"
"
$bind_file
"
fi
if
[
-d
~/.config/fish/functions
]
;
then
rm
-f
~/.config/fish/functions/fzf.fish
if
[
"
$(
ls
-A
~/.config/fish/functions
)
"
]
;
then
echo
"Can't delete non-empty directory:
\"
~/.config/fish/functions
\"
"
else
rmdir
~/.config/fish/functions
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment