Git Product home page Git Product logo

nix-zsh-completions's Introduction

ZSH Completions for Nix and NixOS

This project aims to provide a highly complete set of ZSH completions for Nix, NixOS, NixOps, and the surrounding ecosystem.

NixOS

Setting programs.zsh.enable = true in /etc/nixos/configuration.nix will automatically install and enable nix-zsh-compeletions.

Oh-My-ZSH Installation

cd ~/.oh-my-zsh/custom/plugins
git clone [email protected]:spwhitt/nix-zsh-completions.git

Then add nix-zsh-completions to the plugins list in ~/.zshrc

If you want your prompt to be prefixed by [nix-shell] when you're in a nix-shell add this to your zshrc:

prompt_nix_shell_setup

Antigen Installation

Add the following to ~/.zshrc

antigen bundle [email protected]:spwhitt/nix-zsh-completions.git

Plain ZSH Installation

Clone this repository and add the following to ~/.zshrc with the path to nix-zsh-completions updated as necessary.

source $HOME/nix-zsh-completions/nix-zsh-completions.plugin.zsh
fpath=($HOME/nix-zsh-completions $fpath)
autoload -U compinit && compinit

Required ZSH version

The completion scripts are known to be broken in ZSH version 5.0.8 or older, 5.2 or newer works.

ZSH Completions Tutorial

zsh-completions-howto

nix-zsh-completions's People

Contributors

hedning avatar olejorgenb avatar ma27 avatar spwhitt avatar mic92 avatar furrycatherder avatar xzfc avatar lnl7 avatar nadrieril avatar garbas avatar eqyiel avatar zakame avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.