perplexity-cli
🧠 A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! 🚀🚀🚀
Rafi's workstations (Archlinux, osx) ~/.config.
git clone https://github.com/rafi/.config.gitrafi/.configThis is my entire "dotfiles" configuration for all the software I use on macOS & Archlinux, mostly in the terminal.
I've turned my ~/.config directory into a Git repository and strive to set
applications write their configuration there if they don't by default. Meaning,
I try to conform to the XDG standard. There is one important caveat in doing
so: Secrets can be accidentally committed. I solve this
with the clean and smudge filter features of Git attributes.
The most interesting configs:
... And make sure to check out github.com/rafi/vim-config
:::danger DO NOT install! These are my customized settings that are tailored to my set-up. If you blindly install it, you won't have a good time. :::
See justfile for the available commands.
on macOS, make sure you check these out:
macOS defaults:
Configuration directories are organized neatly by defining specific environment variables in bash/exports and aliases in bash/aliases.
Some programs require special aliases to feed the proper config, see "XDG conformity" in bash/aliases.
Recommended plugins:
jorgebucaran/fisher jorgebucaran/autopair.fish franciscolourenco/done patrickf1/fzf.fish
Using .gitattributes filters clean and smudge. Setup custom filters:
cd ~/.config git config --local filter.vault.clean 'sed -f ~/.config/clean.sed' git config --local filter.vault.smudge 'sed -f ~/.config/smudge.sed'
The sed script clean.sed is included.
However, you have to create the smudge.sed script yourself, for example:
cat > ~/.config/smudge.sed
s/{{ \(DIANA\|ARIA2\)_TOKEN }}/secret/
s/{{ LASTFM_TOKEN }}/token/
s/{{ LASTFM_PASS }}/password/
s/{{ GIT_NAME }}/Joe Shmoe/
s/{{ GIT_EMAIL }}/name@gmail.com ; personal/
s/{{ GIT_WORK_EMAIL }}/name@gmail.com ; work/
s/{{ JIRA_URL }}/url/
s/{{ JIRA_USER }}/username/
s/{{ JIRA_PASS }}/password/
s/{{ FORECASTIO_TOKEN }}/token/
s/{{ GITHUB_TOKEN }}/token/
s/{{ HOMEBREW_GITHUB_API_TOKEN }}/token/
s/{{ GITLAB_TOKEN }}/token/
s/{{ OPENAI_API_KEY }}/token/
s/{{ DICTIONARY_API_KEY }}/key/
s/{{ TMUX_SPOTIFY_API_KEY }}/token/
Now whenever you stage files, the clean.sed will prevent secrets being
committed. And on checkout, the smudge.sed will inject your secrets into
their proper placeholders. Note that smudge.sed is ignored from being
committed mistakenly.
Copy .env.example to ~/.config/.env and fill in your secrets:
HOMEBREW_GITHUB_API_TOKEN= GITLAB_TOKEN= OPENAI_API_KEY= DICTIONARY_API_KEY= # And so on…
For maximum portability, refrain from using quotes or 'export' commands.
more like this
🧠 A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! 🚀🚀🚀
Comprehensive analytics dashboard for AI coding agents — Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigravi…
Free open-source Cloudflare R2 desktop client and S3 GUI for macOS, Windows, and Linux. Manage Cloudflare R2, AWS S3, M…
search projects, people, and tags