}
pkg_install() {
- # $HOME/.local/xbin
+ # ~/.local/xbin
mkdir -p "$pkg_src_bin"
- # mv ./bat-*/bat "$HOME/.local/opt/bat-v0.15.4/bin/bat"
+ # mv ./bat-*/bat ~/.local/opt/bat-v0.15.4/bin/bat
mv ./bat-*/bat "$pkg_src_cmd"
- # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+ # chmod a+x ~/.local/opt/bat-v0.15.4/bin/bat
chmod a+x "$pkg_src_cmd"
}
}
pkg_get_current_version() {
# 'curlie --version' has output in this format:
- # curlie 0.15.4
+ # TODO
# This trims it down to just the version number:
- # 0.15.4
- echo $(curlie --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+ # TODO
+ #echo $(curlie --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+ # See https://github.com/rs/curlie/issues/22
+ echo "0.0.0"
}
pkg_install() {
# $HOME/.local/xbin
mkdir -p "$pkg_src_bin"
- # mv ./curlie* "$HOME/.local/opt/curlie-v0.15.4/bin/curlie"
+ # mv ./curlie* "$HOME/.local/opt/curlie-v1.3.1/bin/curlie"
mv ./curlie* "$pkg_src_cmd"
- # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+ # chmod a+x "$HOME/.local/opt/curlie-v1.3.1/bin/curlie"
chmod a+x "$pkg_src_cmd"
}
}
# mv ./fd-*/fd "$HOME/.local/opt/fd-v8.1.1/bin/fd"
mv ./fd-*/fd "$pkg_src_cmd"
- # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+ # chmod a+x "$HOME/.local/opt/fd-v8.1.1/bin/fd"
chmod a+x "$pkg_src_cmd"
}
}
---
title: fzf
-homepage: https://github.com/junegunn/fzf-bin
+homepage: https://github.com/junegunn/fzf
tagline: |
fzf is a general-purpose command-line fuzzy finder.
---
## Cheat Sheet
+![](https://raw.githubusercontent.com/junegunn/i/master/fzf-preview.png)
+
> It's an interactive Unix filter for command-line that can be used with any
> list; files, command history, processes, hostnames, bookmarks, git commits,
> logs, etc.
```bash
sudo journalctl -u my-app-name --since '2020-01-01' | fzf
```
+
+### Use space-delimited regular expressions to search
+
+```txt
+^README | .md$ | .txt$
+```
}
pkg_install() {
- # $HOME/.local/
+ # ~/.local/
mkdir -p "$pkg_src_bin"
- # mv ./hexyl-*/hexyl "$HOME/.local/opt/hexyl-v0.8.0/bin/hexyl"
+ # mv ./hexyl-*/hexyl ~/.local/opt/hexyl-v0.8.0/bin/hexyl
mv ./hexyl-*/hexyl "$pkg_src_cmd"
- # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+ # chmod a+x ~/.local/opt/hexyl-v0.8.0/bin/hexyl
chmod a+x "$pkg_src_cmd"
}
}
}
pkg_install() {
- # $HOME/.local/xbin
+ # ~/.local/opt/rg-v11.1.0/bin
mkdir -p "$pkg_src_bin"
- # mv ./ripgrep-*/rg "$HOME/.local/xbin/rg-v11.1.0"
+ # mv ./ripgrep-*/rg ~/.local/opt/rg-v11.1.0/bin/rg
mv ./ripgrep-*/rg "$pkg_src_cmd"
- # chmod a+x "$HOME/.local/xbin/rg-v11.1.0"
+ # chmod a+x ~/.local/opt/rg-v11.1.0/bin/rg
chmod a+x "$pkg_src_cmd"
}
}