X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=examples%2Fsimple%2Ffunctions;fp=examples%2Fsimple%2Ffunctions;h=2ea299453b91b5efa87e7833e273fe9ce6f74699;hb=ed0ab4e14ee8647eb63cbfe2ab3c9a74641949cb;hp=9c2ed48519bff374b420932441dd1da13971bf2d;hpb=332c08fd5e4d290e75087945048c802733dfc88d;p=techtalk-pse.git diff --git a/examples/simple/functions b/examples/simple/functions index 9c2ed48..2ea2994 100644 --- a/examples/simple/functions +++ b/examples/simple/functions @@ -3,6 +3,13 @@ export PS1="$ " export HISTFILE=/tmp/history +rm -f $HISTFILE + +add_history () +{ + echo "$@" >> $HISTFILE +} + terminal () { gnome-terminal \