Permalink
Browse files

utility: add auto rlwrap

  • Loading branch information...
1 parent d63b3b8 commit ef7546209592cf3469059e45ca8843f26eea7e3e @meh meh committed Dec 22, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 utility/init.zsh
View
13 utility/init.zsh
@@ -171,6 +171,19 @@ function {
}
# }}}
+# Wrap In Readline {{{
+is-callable rlwrap && function {
+ local programs
+ local program
+
+ zdefault -a ':zoppo:plugin:utility' readline programs \
+ 'nc' 'telnet' 'sbcl' 'tclsh' 'mzscheme'
+
+ for program ("$programs[@]")
+ alias "$program"="rlwrap -c -D -r $program"
+}
+# }}}
+
# Directory Stuff {{{
alias+ mkdir '-p'
alias md='mkdir'

0 comments on commit ef75462

Please sign in to comment.