Dict: Difference between revisions

From NixOS Wiki
imported>Crocodillian
Create page to describe dictionary lookups with the dict utility.
 
Klinger (talk | contribs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The <code>dict</code> utility does dictionary lookups from the command-line, it is part of the <code>dictd</code> software distribution.
The <code>dict</code> utility does network dictionary lookups from the command-line, it is part of the <code>dictd</code> software distribution.


== Setup ==
== Setup ==
Line 6: Line 6:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
environment.systemPackages = with pkgs; [
{
   dict
  environment = {
];
    etc."dict.conf".text = "server dict.org";
    systemPackages = with pkgs; [ dict ];
   };
}
</nowiki>}}
</nowiki>}}


Run the following as your user:
and rebuild your system.
 
<syntaxhighlight lang="bash">
echo 'server dict.org' > ~/.dictrc
</syntaxhighlight>


== Usage ==
== Usage ==
Line 30: Line 29:
* [http://dict.org/bin/Dict The <code>dict.org</code> web dictionary lookup tool]
* [http://dict.org/bin/Dict The <code>dict.org</code> web dictionary lookup tool]


[[Category:NixOS]]
 
[[Category:Guide]]
[[Category:Applications]]
[[Category:Dictionary]]
[[Category:Database]]
[[Category:Networking]]
[[Category:Networking]]

Latest revision as of 19:55, 19 April 2024

The dict utility does network dictionary lookups from the command-line, it is part of the dictd software distribution.

Setup

Add `dict` to your list of packages in /etc/nixos/configuration.nix:

/etc/nixos/configuration.nix
{
  environment = {
    etc."dict.conf".text = "server dict.org";
    systemPackages = with pkgs; [ dict ];
  };
}

and rebuild your system.

Usage

To lookup a word, run, for example:

dict snowflake

See Also