X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=ccc8ea7638fcb3f85cca76e3fbe2e77f724687a9;hb=63303c2286c404830994aa1a7f7f62dc1e2be248;hp=06e03f90f0e07dff468b7391bf90359b5277d11c;hpb=8e49d06260954b937904d4807618db8dcd3ebef0;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 06e03f9..ccc8ea7 100644 --- a/zsh/rc +++ b/zsh/rc @@ -78,17 +78,17 @@ if [[ $ZSH_VERSION != (4.3.<5->|4.<4->*|<5->*) ]]; then # arrays. function precmd() { for function in $precmd_functions; do - $function $@ + $function "$@" done } function preexec() { for function in $preexec_functions; do - $function $@ + $function "$@" done } function chpwd() { for function in $chpwd_functions; do - $function $@ + $function "$@" done } fi @@ -650,6 +650,15 @@ xpdf() { disown %command } +# GHCI doesn't use readline, force it if rlwrap is available. +(( $+commands[rlwrap] )) && ghci() { + command rlwrap \ + --always-readline --complete-filenames -t dumb \ + --histsize 5000 \ + --file ~/.shell/rlwrap/ghci \ + ghci "$@" 2>&1 +} + # OS SPECIFIC SETTINGS