Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d79415b1
Commit
d79415b1
authored
Mar 25, 2019
by
SomeDer
Committed by
Marc Cornellà
Mar 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command-not-found: add support for NixOS (#7701)
parent
1e7033d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
README.md
plugins/command-not-found/README.md
+1
-0
command-not-found.plugin.zsh
plugins/command-not-found/command-not-found.plugin.zsh
+7
-0
No files found.
plugins/command-not-found/README.md
View file @
d79415b1
...
@@ -27,5 +27,6 @@ It works out of the box with the command-not-found packages for:
...
@@ -27,5 +27,6 @@ It works out of the box with the command-not-found packages for:
-
[
Arch Linux
](
https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
)
-
[
Arch Linux
](
https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
)
-
[
macOS (Homebrew)
](
https://github.com/Homebrew/homebrew-command-not-found
)
-
[
macOS (Homebrew)
](
https://github.com/Homebrew/homebrew-command-not-found
)
-
[
Fedora
](
https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound
)
-
[
Fedora
](
https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound
)
-
[
NixOS
](
https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found
)
You can add support for other platforms by submitting a Pull Request.
You can add support for other platforms by submitting a Pull Request.
plugins/command-not-found/command-not-found.plugin.zsh
View file @
d79415b1
...
@@ -31,3 +31,10 @@ if type brew &> /dev/null; then
...
@@ -31,3 +31,10 @@ if type brew &> /dev/null; then
eval
"
$(
brew command-not-found-init
)
"
;
eval
"
$(
brew command-not-found-init
)
"
;
fi
fi
fi
fi
# NixOS command-not-found support
if
[
-x
/run/current-system/sw/bin/command-not-found
]
;
then
command_not_found_handler
()
{
/run/current-system/sw/bin/command-not-found
$@
}
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment