Skip to content

Commit

Permalink
completion
Browse files Browse the repository at this point in the history
  • Loading branch information
wardnath committed Aug 22, 2024
1 parent 6ce2cfc commit 4724c7e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 206 deletions.
11 changes: 4 additions & 7 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"cheat@latest",
"chezmoi@latest",
"cloc@latest",
"cmake@latest",
"direnv@latest",
"duf@latest",
"eza@latest",
Expand All @@ -26,14 +25,13 @@
"jq@latest",
"kubectl@latest",
"kubernetes-helm@latest",
"make@latest",
"ncdu@latest",
"neofetch@latest",
"neovim@latest",
"nmap@latest",
"nnn@latest",
"nodejs@latest",
"p7zip@latest",
"projectable@latest",
"pstree@latest",
"pv@latest",
"ripgrep@latest",
Expand All @@ -50,7 +48,6 @@
"wget@latest",
"yq@latest",
"zoxide@latest",
"python@latest",
"wl-clipboard@latest"
],
"env": {
Expand All @@ -63,12 +60,12 @@
],
"scripts": {
"complgen-man": [
"man $CMD | complgen scrape > chezmoi/dot_config/complgen/$CMD.usage.tmpl"
"man $1 | complgen scrape > chezmoi/dot_config/complgen/$1.usage.tmpl"
],
"complgen-help": [
"$CMD --help | complgen scrape > chezmoi/dot_config/complgen/$CMD.usage.tmpl"
"$1 --help | complgen scrape > chezmoi/dot_config/complgen/$1.usage.tmpl"
],
"install-nnn": [
"install-nnn": [
"sh -c \"$(curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs)\""
],
"install-tmux": [
Expand Down
244 changes: 48 additions & 196 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -465,154 +465,6 @@
}
}
},
"ffmpeg@latest": {
"last_modified": "2024-07-05T12:16:31Z",
"resolved": "github:NixOS/nixpkgs/4284c2b73c8bce4b46a6adf23e16d9e2ec8da4bb#ffmpeg",
"source": "devbox-search",
"version": "6.1.1",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "bin",
"path": "/nix/store/xzmj9mv66gmda82kppccczmxzc9w2j50-ffmpeg-6.1.1-bin",
"default": true
},
{
"name": "man",
"path": "/nix/store/y808pw45g4kmihrc3yszcr6wmpqb4lbl-ffmpeg-6.1.1-man",
"default": true
},
{
"name": "out",
"path": "/nix/store/6c0vx228xz5727h16zzq4ic9vmx6np5q-ffmpeg-6.1.1"
},
{
"name": "data",
"path": "/nix/store/7hmicv6yzh924p3af4g3rs96wwhdjx3d-ffmpeg-6.1.1-data"
},
{
"name": "dev",
"path": "/nix/store/qb77qfyzcs54mqlv31zwbjfsi9zghb7c-ffmpeg-6.1.1-dev"
},
{
"name": "doc",
"path": "/nix/store/0078wk7mzrzffngm19avdqg2pcbrkxxz-ffmpeg-6.1.1-doc"
},
{
"name": "lib",
"path": "/nix/store/6a9mbnhks1x0mj0j0y797gliif5m4rwq-ffmpeg-6.1.1-lib"
}
],
"store_path": "/nix/store/xzmj9mv66gmda82kppccczmxzc9w2j50-ffmpeg-6.1.1-bin"
},
"aarch64-linux": {
"outputs": [
{
"name": "bin",
"path": "/nix/store/s8jqvpkz5jva73ir7rdajh33l5kinj94-ffmpeg-6.1.1-bin",
"default": true
},
{
"name": "man",
"path": "/nix/store/1yr0clfahfw8i4i8r99rvsj7088zldm0-ffmpeg-6.1.1-man",
"default": true
},
{
"name": "data",
"path": "/nix/store/fxghmjzv4x1scpr104irkr2frd8xfcvc-ffmpeg-6.1.1-data"
},
{
"name": "dev",
"path": "/nix/store/966jkdfqcrgjixkpc3492hx0qcj3m0z1-ffmpeg-6.1.1-dev"
},
{
"name": "doc",
"path": "/nix/store/50hh46nya8f4sl0fl93jdcj7z91di2zk-ffmpeg-6.1.1-doc"
},
{
"name": "lib",
"path": "/nix/store/0d62k12vr1wjag7zclpbr52khpkblym9-ffmpeg-6.1.1-lib"
},
{
"name": "out",
"path": "/nix/store/49f2wd6xmwg0cv8gjdl3g1456k3fafzr-ffmpeg-6.1.1"
}
],
"store_path": "/nix/store/s8jqvpkz5jva73ir7rdajh33l5kinj94-ffmpeg-6.1.1-bin"
},
"x86_64-darwin": {
"outputs": [
{
"name": "bin",
"path": "/nix/store/x2wyjib19dy2mry1gpdwfzky6931hkdz-ffmpeg-6.1.1-bin",
"default": true
},
{
"name": "man",
"path": "/nix/store/s3kcgad559yr7rc4jsd7d1adk2ydk0d8-ffmpeg-6.1.1-man",
"default": true
},
{
"name": "out",
"path": "/nix/store/wmqyavzn9vj7w22ygb3f29i4y8srv4n8-ffmpeg-6.1.1"
},
{
"name": "data",
"path": "/nix/store/j7dl67f972pwl95navw3nd4sjcgsxz14-ffmpeg-6.1.1-data"
},
{
"name": "dev",
"path": "/nix/store/cyqm1xmiybf4da284kv8kqpisjaaycci-ffmpeg-6.1.1-dev"
},
{
"name": "doc",
"path": "/nix/store/98qn55m5nhz85b7ahr0m37nxxnmym6n1-ffmpeg-6.1.1-doc"
},
{
"name": "lib",
"path": "/nix/store/2jsmf9g5lgy6a1j6dsjw6s9rdy55iyjb-ffmpeg-6.1.1-lib"
}
],
"store_path": "/nix/store/x2wyjib19dy2mry1gpdwfzky6931hkdz-ffmpeg-6.1.1-bin"
},
"x86_64-linux": {
"outputs": [
{
"name": "bin",
"path": "/nix/store/hpdx0501l5y5p2grnpyb0dh266fxmiz5-ffmpeg-6.1.1-bin",
"default": true
},
{
"name": "man",
"path": "/nix/store/7qgi9km11m50xyjrrjc2idlg9095y6m1-ffmpeg-6.1.1-man",
"default": true
},
{
"name": "data",
"path": "/nix/store/8wfqs8m7f0ycid90xp3n9z0k6l2rxg10-ffmpeg-6.1.1-data"
},
{
"name": "dev",
"path": "/nix/store/ccy9gvyqjlkhyfwx3pfg2ixwbr2vs741-ffmpeg-6.1.1-dev"
},
{
"name": "doc",
"path": "/nix/store/3486qr49aw0yk9x9pjbll6xyx0kgm1ys-ffmpeg-6.1.1-doc"
},
{
"name": "lib",
"path": "/nix/store/fj85yvx8zmakhf63xj0jkrnsih057514-ffmpeg-6.1.1-lib"
},
{
"name": "out",
"path": "/nix/store/qkkbsmvg3sds2kmip5np9l0ia3ydrjcy-ffmpeg-6.1.1"
}
],
"store_path": "/nix/store/hpdx0501l5y5p2grnpyb0dh266fxmiz5-ffmpeg-6.1.1-bin"
}
}
},
"fzf@latest": {
"last_modified": "2024-02-01T15:59:28Z",
"resolved": "github:NixOS/nixpkgs/f38bca1ca559974b36863d0ff4bb710b7bc12890#fzf",
Expand Down Expand Up @@ -1141,54 +993,6 @@
}
}
},
"navi@latest": {
"last_modified": "2024-07-04T01:58:53Z",
"resolved": "github:NixOS/nixpkgs/6842b061970bf96965d66fcc86a28e1f719aae95#navi",
"source": "devbox-search",
"version": "2.23.0",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/60cxs1b6zs9xsaavwy5m5mbbyffmi5g5-navi-2.23.0",
"default": true
}
],
"store_path": "/nix/store/60cxs1b6zs9xsaavwy5m5mbbyffmi5g5-navi-2.23.0"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/34lyrxagxw4j7d8665qss2ssq7mmryjm-navi-2.23.0",
"default": true
}
],
"store_path": "/nix/store/34lyrxagxw4j7d8665qss2ssq7mmryjm-navi-2.23.0"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/mcw1jplzjg5wilw6dyi3aj6llcj75jw5-navi-2.23.0",
"default": true
}
],
"store_path": "/nix/store/mcw1jplzjg5wilw6dyi3aj6llcj75jw5-navi-2.23.0"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/hsy62s8h1icns4rwsg0n6vs3bis9p73s-navi-2.23.0",
"default": true
}
],
"store_path": "/nix/store/hsy62s8h1icns4rwsg0n6vs3bis9p73s-navi-2.23.0"
}
}
},
"ncdu@latest": {
"last_modified": "2024-06-17T06:49:48Z",
"resolved": "github:NixOS/nixpkgs/38d3352a65ac9d621b0cd3074d3bef27199ff78f#ncdu",
Expand Down Expand Up @@ -2223,6 +2027,54 @@
}
}
},
"wl-clipboard@latest": {
"last_modified": "2024-08-14T11:41:26Z",
"resolved": "github:NixOS/nixpkgs/0cb2fd7c59fed0cd82ef858cbcbdb552b9a33465#wl-clipboard",
"source": "devbox-search",
"version": "2.2.1",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/0bh9ph5h7aim3nfisfbdf3yyk2bh92fq-wl-clipboard-2.2.1",
"default": true
}
],
"store_path": "/nix/store/0bh9ph5h7aim3nfisfbdf3yyk2bh92fq-wl-clipboard-2.2.1"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/kdyw3p9mdb1a8q1kvq9gdgzc5qcrbg3j-wl-clipboard-2.2.1",
"default": true
}
],
"store_path": "/nix/store/kdyw3p9mdb1a8q1kvq9gdgzc5qcrbg3j-wl-clipboard-2.2.1"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/c2pz98f245carmixn6mfbyddcm612p3l-wl-clipboard-2.2.1",
"default": true
}
],
"store_path": "/nix/store/c2pz98f245carmixn6mfbyddcm612p3l-wl-clipboard-2.2.1"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/3biib9f8z0v2xvs5s99lbms1kiyaraqn-wl-clipboard-2.2.1",
"default": true
}
],
"store_path": "/nix/store/3biib9f8z0v2xvs5s99lbms1kiyaraqn-wl-clipboard-2.2.1"
}
}
},
"yq@latest": {
"last_modified": "2024-01-27T14:55:31Z",
"resolved": "github:NixOS/nixpkgs/160b762eda6d139ac10ae081f8f78d640dd523eb#yq",
Expand Down
8 changes: 5 additions & 3 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ zinit load denilsonsa/prettyping
zinit ice as"completion"
zinit snippet https://github.com/docker/cli/blob/master/contrib/completion/zsh/_docker

AUX_COMPLETION_PATH="~/.config/aux-zsh-completions/stdout-completions.zsh"
alias auxcomp="echo $AUX_COMPLETION_PATH"
# aux completions
if ! grep -q "source ~/.config/aux-zsh-completions/stdout-completions.zsh" ~/.zshrc; then
echo "source ~/.config/aux-zsh-completions/stdout-completions.zsh" >> ~/.zshrc
if ! grep -q "source $AUX_COMPLETION_PATH" ~/.zshrc; then
echo "source $AUX_COMPLETION_PATH" >> ~/.zshrc
fi

## zsh-bash-completions-fallback
Expand All @@ -114,7 +116,7 @@ zinit light "spwhitt/nix-zsh-completions"
zinit load zsh-users/zsh-completions
zinit load clarketm/zsh-completions

# lib from Oy My Zsh
# lib from Oh My Zsh
zinit snippet OMZL::completion.zsh
zinit snippet OMZL::spectrum.zsh
zinit snippet OMZL::history.zsh
Expand Down

0 comments on commit 4724c7e

Please sign in to comment.