Skip to content

Commit

Permalink
utility: add auto rlwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Dec 22, 2012
1 parent d63b3b8 commit ef75462
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ef75462

Please sign in to comment.