xmonad-contrib-0.18.0.9: Community-maintained extensions for xmonad
Copyright(C) 2020 Zubin Duggal
LicenseBSD3
Maintainerzubin.duggal@gmail.com
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Prompt.Zsh

Description

A version of XMonad.Prompt.Shell that lets you access the awesome power of Zsh completions in your xmonad prompt

Synopsis

Usage

  1. Grab the capture.zsh script to capture zsh completions from https://github.com/Valodim/zsh-capture-completion
  2. In your xmonad.hs:
import XMonad.Prompt
import XMonad.Prompt.Zsh
  1. In your keybindings add something like:
  , ((modm .|. controlMask, xK_x), zshPrompt def "/path/to/capture.zsh")

For detailed instruction on editing the key binding see the tutorial.

Utility functions

stripZsh :: String -> String Source #

Removes the argument description from the zsh completion