diff --git a/zshrc.org b/zshrc.org index 20b810f..143eda3 100644 --- a/zshrc.org +++ b/zshrc.org @@ -73,25 +73,27 @@ defined in the previous section. tell the shell where to look for them. Whenever you reference a function, the shell will automatically load it into memory. -% mkdir /tmp/funs -% cat >/tmp/funs/yp -ypmatch $1 passwd.byname -^D -% cat >/tmp/funs/cx -chmod +x $* -^D -% FPATH=/tmp/funs -% autoload cx yp -% functions cx yp -undefined cx () -undefined yp () -% chmod 755 /tmp/funs/{cx,yp} -% yp egsirer -egsirer:*:3214:35:Emin Gun Sirer:/u/egsirer:/bin/sh -% functions yp -yp () { - ypmatch $1 passwd.byname -} +#+begin_src sh :tangle no + % mkdir /tmp/funs + % cat >/tmp/funs/yp + ypmatch $1 passwd.byname + ^D + % cat >/tmp/funs/cx + chmod +x $* + ^D + % FPATH=/tmp/funs + % autoload cx yp + % functions cx yp + undefined cx () + undefined yp () + % chmod 755 /tmp/funs/{cx,yp} + % yp egsirer + egsirer:*:3214:35:Emin Gun Sirer:/u/egsirer:/bin/sh + % functions yp + yp () { + ypmatch $1 passwd.byname + } +#+end_src *** Include :daily: