mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
deploy: e6e2f43a62
This commit is contained in:
parent
20f80d9e94
commit
dc5f94e1d7
1 changed files with 31 additions and 15 deletions
|
|
@ -67200,7 +67200,7 @@ null or package</p>
|
|||
</dt>
|
||||
<dd>
|
||||
<p>Each set of channels are written to
|
||||
<code class="filename">$XDG_CONFIG_HOME/television/NAME-channels.toml</code></p><p>See <a class="link" href="https://github.com/alexpasmantier/television/blob/main/docs/channels.md" target="_top">https://github.com/alexpasmantier/television/blob/main/docs/channels.md</a>
|
||||
<code class="filename">$XDG_CONFIG_HOME/television/cable/NAME.toml</code></p><p>See <a class="link" href="https://alexpasmantier.github.io/television/docs/Users/channels" target="_top">https://alexpasmantier.github.io/television/docs/Users/channels</a>
|
||||
for options</p>
|
||||
|
||||
<p><span class="emphasis"><em>Type:</em></span>
|
||||
|
|
@ -67210,22 +67210,38 @@ attribute set of (TOML value)</p>
|
|||
<code class="literal">{ }</code></p>
|
||||
|
||||
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
|
||||
my-custom = {
|
||||
cable_channel = [
|
||||
{
|
||||
name = "git-log";
|
||||
source_command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" \"$@\"";
|
||||
preview_command = "git show -p --stat --pretty=fuller --color=always {0}";
|
||||
}
|
||||
{
|
||||
name = "git-log";
|
||||
source_command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" \"$@\"";
|
||||
preview_command = "git show -p --stat --pretty=fuller --color=always {0}";
|
||||
}
|
||||
];
|
||||
git-diff = {
|
||||
metadata = {
|
||||
description = "A channel to select files from git diff commands";
|
||||
name = "git-diff";
|
||||
requirements = [
|
||||
"git"
|
||||
];
|
||||
};
|
||||
preview = {
|
||||
command = "git diff HEAD --color=always -- '{}'";
|
||||
};
|
||||
source = {
|
||||
command = "git diff --name-only HEAD";
|
||||
};
|
||||
};
|
||||
git-log = {
|
||||
metadata = {
|
||||
description = "A channel to select from git log entries";
|
||||
name = "git-log";
|
||||
requirements = [
|
||||
"git"
|
||||
];
|
||||
};
|
||||
preview = {
|
||||
command = "git show -p --stat --pretty=fuller --color=always '{0}'";
|
||||
};
|
||||
source = {
|
||||
command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" \"$@\"";
|
||||
output = "{split: :0}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p><span class="emphasis"><em>Declared by:</em></span></p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue