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
9dac12cb
Commit
9dac12cb
authored
10 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
Remove duplicate examples from README
As discussed in #54
parent
d76a3646
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+0
-33
0 additions, 33 deletions
README.md
with
0 additions
and
33 deletions
README.md
+
0
−
33
View file @
9dac12cb
...
...
@@ -173,12 +173,6 @@ fd() {
cd
"
$dir
"
}
# fda - including hidden directories
fda
()
{
local dir
dir
=
$(
find
${
1
:-
.
}
-type
d 2> /dev/null | fzf +m
)
&&
cd
"
$dir
"
}
# fh - repeat history
fh
()
{
eval
$((
[
-
n
"
$ZSH_NAME
"
]
&&
fc
-
l
1
||
history
)
|
fzf
+
s
|
sed
's/ *[0-9]* *//'
)
...
...
@@ -188,33 +182,6 @@ fh() {
fkill
()
{
ps
-
ef
|
sed
1
d
|
fzf
-
m
|
awk
'{print $2}'
|
xargs
kill
-
${
1
:-
9
}
}
# fbr - checkout git branch
fbr
()
{
local
branches branch
branches
=
$(
git branch
)
&&
branch
=
$(
echo
"
$branches
"
| fzf +s +m
)
&&
git checkout
$(
echo
"
$branch
"
|
sed
"s/.* //"
)
}
# fco - checkout git commit
fco
()
{
local
commits commit
commits
=
$(
git log
--pretty
=
oneline
--abbrev-commit
--reverse
)
&&
commit
=
$(
echo
"
$commits
"
| fzf +s +m
-e
)
&&
git checkout
$(
echo
"
$commit
"
|
sed
"s/ .*//"
)
}
# ftags - search ctags
ftags
()
{
local
line
[
-
e tags
]
&&
line
=
$(
awk
'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}'
tags |
cut
-c1-80
| fzf
--nth
=
1,2
)
&&
$EDITOR
$(
cut
-f3
<<<
"
$line
"
)
-
c
"set nocst"
\
-
c
"silent tag
$(
cut
-f2
<<<
"
$line
"
)
"
}
```
For more examples, see
[
the wiki
...
...
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