perplexity-cli
🧠 A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! 🚀🚀🚀
bash, zsh, and fish key bindings for Git objects, powered by fzf
git clone https://github.com/junegunn/fzf-git.sh.gitjunegunn/fzf-git.shbash, zsh, and fish key bindings for Git objects, powered by fzf.
Each binding will allow you to browse through Git objects of a certain type, and select the objects you want to paste to your command-line.
git for-each-ref bindinggit for-each-ref)Warning
You may have issues with these bindings in the following cases:
stty -ixon will disable it)To workaround the problems, you can use CTRL-G{key} instead of CTRL-GCTRL-{KEY}.
Warning
If zsh's KEYTIMEOUT is too small (e.g. 1), you may not be able
to hit two keys in time.
# Redefine this function to change the options
_fzf_git_fzf() {
fzf --height 50% --tmux 90%,70% \
--layout reverse --multi --min-height 20+ \
--no-separator --header-border horizontal \
--border-label-pos 2 \
--color 'label:blue' \
--preview-window 'right,50%' --preview-border line \
--bind 'ctrl-/:change-preview-window(down,50%|hidden|)' "$@"
}
Each binding is backed by _fzf_git_* function so you can do something like
this in your shell configuration file.
gco() {
_fzf_git_each_ref --no-multi | xargs git checkout
}
gswt() {
cd "$(_fzf_git_worktrees --no-multi)"
}
| Variable | Description | Default |
|---|---|---|
BAT_STYLE |
Specifies the style for displaying files using bat |
full |
FZF_GIT_CAT |
Defines the preview command used for displaying the file | bat --style=$BAT_STYLE --color=$FZF_GIT_COLOR |
FZF_GIT_COLOR |
Set to never to suppress colors in the list |
always |
FZF_GIT_PAGER |
Specifies the pager command for the preview window | $(git config --get core.pager) |
FZF_GIT_PREVIEW_COLOR |
Set to never to suppress colors in the preview window |
always |
more like this
🧠 A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! 🚀🚀🚀
search projects, people, and tags