mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
ShellPrompt.hs: minor haddock corrections
This commit is contained in:
@@ -17,22 +17,6 @@ module XMonadContrib.ShellPrompt (
|
||||
-- $usage
|
||||
shellPrompt
|
||||
) where
|
||||
{-
|
||||
usage:
|
||||
1. In xmonad.cabal change:
|
||||
build-depends: base>=2.0, X11>=1.2.1, X11-extras>=0.2, mtl>=1.0, unix>=1.0
|
||||
to
|
||||
build-depends: base>=2.0, X11>=1.2.1, X11-extras>=0.2, mtl>=1.0, unix>=1.0, readline >= 1.0
|
||||
|
||||
2. In Config.hs add:
|
||||
> import XMonadContrib.XPrompt
|
||||
> import XMonadContrib.ShellPrompt
|
||||
|
||||
3. In your keybindings add something like:
|
||||
|
||||
> , ((modMask .|. controlMask, xK_x), shellPrompt defaultXPConfig)
|
||||
|
||||
-}
|
||||
|
||||
import XMonad
|
||||
import XMonadContrib.XPrompt
|
||||
@@ -42,6 +26,26 @@ import Data.List
|
||||
import System.Console.Readline
|
||||
import System.Environment
|
||||
|
||||
-- $usage
|
||||
--
|
||||
-- 1. In xmonad.cabal change:
|
||||
--
|
||||
-- > build-depends: base>=2.0, X11>=1.2.1, X11-extras>=0.2, mtl>=1.0, unix>=1.0
|
||||
--
|
||||
-- to
|
||||
--
|
||||
-- > build-depends: base>=2.0, X11>=1.2.1, X11-extras>=0.2, mtl>=1.0, unix>=1.0, readline >= 1.0
|
||||
--
|
||||
-- 2. In Config.hs add:
|
||||
--
|
||||
-- > import XMonadContrib.XPrompt
|
||||
-- > import XMonadContrib.ShellPrompt
|
||||
--
|
||||
-- 3. In your keybindings add something like:
|
||||
--
|
||||
-- > , ((modMask .|. controlMask, xK_x), shellPrompt defaultXPConfig)
|
||||
--
|
||||
|
||||
data Shell = Shell
|
||||
|
||||
instance XPrompt Shell where
|
||||
|
Reference in New Issue
Block a user