Add cargo-deb metadata

This commit is contained in:
Ajeet D'Souza 2022-06-25 17:45:47 +05:30
parent 10c11310ed
commit a6ac6d4ac6
2 changed files with 55 additions and 2 deletions

View File

@ -3,9 +3,12 @@ authors = ["Ajeet D'Souza <98ajeet@gmail.com>"]
categories = ["command-line-utilities", "filesystem"] categories = ["command-line-utilities", "filesystem"]
description = "A smarter cd command for your terminal" description = "A smarter cd command for your terminal"
edition = "2021" edition = "2021"
homepage = "https://github.com/ajeetdsouza/zoxide"
keywords = ["cli"] keywords = ["cli"]
license = "MIT" license = "MIT"
license-file = "LICENSE"
name = "zoxide" name = "zoxide"
readme = "README.md"
repository = "https://github.com/ajeetdsouza/zoxide" repository = "https://github.com/ajeetdsouza/zoxide"
rust-version = "1.59" rust-version = "1.59"
version = "0.8.1" version = "0.8.1"
@ -60,3 +63,53 @@ codegen-units = 1
debug = 0 debug = 0
lto = true lto = true
strip = true strip = true
[package.metadata.deb]
section = "admin"
priority = "optional"
assets = [
[
"target/release/zoxide",
"usr/local/bin/",
"755",
],
[
"contrib/completions/zoxide.bash",
"usr/share/bash-completion/completions/zoxide",
"644",
],
[
"contrib/completions/zoxide.fish",
"usr/share/fish/completions/",
"664",
],
[
"contrib/completions/_zoxide",
"usr/share/zsh/vendor-completions/",
"644",
],
[
"man/man1/*",
"usr/share/man/man1/",
"644",
],
[
"README.md",
"usr/share/doc/zoxide/",
"644",
],
[
"CHANGELOG.md",
"usr/share/doc/zoxide/",
"644",
],
[
"LICENSE",
"usr/share/doc/zoxide/",
"644",
],
]
extended-description = """\
zoxide is a smarter cd command, inspired by z and autojump. It remembers which \
directories you use most frequently, so you can "jump" to them in just a few \
keystrokes."""

View File

@ -113,14 +113,14 @@ end
{%- match cmd %} {%- match cmd %}
{%- when Some with (cmd) %} {%- when Some with (cmd) %}
abbr --erase {{cmd}} abbr --erase {{cmd}} &>/dev/null
complete -c {{cmd}} -e complete -c {{cmd}} -e
function {{cmd}} function {{cmd}}
__zoxide_z $argv __zoxide_z $argv
end end
complete -c {{cmd}} -f -a '(__zoxide_z_complete)' complete -c {{cmd}} -f -a '(__zoxide_z_complete)'
abbr --erase {{cmd}}i abbr --erase {{cmd}}i &>/dev/null
complete -c {{cmd}}i -e complete -c {{cmd}}i -e
function {{cmd}}i function {{cmd}}i
__zoxide_zi $argv __zoxide_zi $argv