Added ghci
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.dotfiles
|
||||
=========
|
||||
|
||||
The dotfiles I use
|
||||
The dotfiles I use. Includes configuration files for vim, bash, ghci and git.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
export PATH=$PATH:/opt/local/bin:/usr/local/lib/io
|
||||
export PATH=$PATH:/opt/local/bin:/usr/local/lib/io:~/.cabal/bin
|
||||
export MANPATH=$MANPATH:/opt/local/share/man
|
||||
export INFOPATH=$INFOPATH:/opt/local/share/info
|
||||
alias gcc="gcc-mp-4.9"
|
||||
|
5
ghci
Normal file
5
ghci
Normal file
@@ -0,0 +1,5 @@
|
||||
:set prompt "ghci> "
|
||||
let ghciEscapeShellArg arg = "'" ++ concatMap (\c -> if c == '\'' then "'\"'\"'" else [c]) arg ++ "'"
|
||||
|
||||
:def! h return . (":! hoogle --color --count=20 " ++) . ghciEscapeShellArg
|
||||
:def! doc return . (":! hoogle --info " ++) . ghciEscapeShellArg
|
Reference in New Issue
Block a user