aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ShellPrompt.hs36
1 files changed, 20 insertions, 16 deletions
diff --git a/ShellPrompt.hs b/ShellPrompt.hs
index 7fc0ce3..dfa77d0 100644
--- a/ShellPrompt.hs
+++ b/ShellPrompt.hs
@@ -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