Add cargo-deb metadata
This commit is contained in:
parent
10c11310ed
commit
a6ac6d4ac6
53
Cargo.toml
53
Cargo.toml
|
|
@ -3,9 +3,12 @@ authors = ["Ajeet D'Souza <98ajeet@gmail.com>"]
|
|||
categories = ["command-line-utilities", "filesystem"]
|
||||
description = "A smarter cd command for your terminal"
|
||||
edition = "2021"
|
||||
homepage = "https://github.com/ajeetdsouza/zoxide"
|
||||
keywords = ["cli"]
|
||||
license = "MIT"
|
||||
license-file = "LICENSE"
|
||||
name = "zoxide"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/ajeetdsouza/zoxide"
|
||||
rust-version = "1.59"
|
||||
version = "0.8.1"
|
||||
|
|
@ -60,3 +63,53 @@ codegen-units = 1
|
|||
debug = 0
|
||||
lto = 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."""
|
||||
|
|
|
|||
|
|
@ -113,14 +113,14 @@ end
|
|||
{%- match cmd %}
|
||||
{%- when Some with (cmd) %}
|
||||
|
||||
abbr --erase {{cmd}}
|
||||
abbr --erase {{cmd}} &>/dev/null
|
||||
complete -c {{cmd}} -e
|
||||
function {{cmd}}
|
||||
__zoxide_z $argv
|
||||
end
|
||||
complete -c {{cmd}} -f -a '(__zoxide_z_complete)'
|
||||
|
||||
abbr --erase {{cmd}}i
|
||||
abbr --erase {{cmd}}i &>/dev/null
|
||||
complete -c {{cmd}}i -e
|
||||
function {{cmd}}i
|
||||
__zoxide_zi $argv
|
||||
|
|
|
|||
Loading…
Reference in New Issue