2ea299453b91b5efa87e7833e273fe9ce6f74699
[techtalk-pse.git] / examples / simple / functions
1 # -*- shell-script -*-
2
3 export PS1="$ "
4 export HISTFILE=/tmp/history
5
6 rm -f $HISTFILE
7
8 add_history ()
9 {
10     echo "$@" >> $HISTFILE
11 }
12
13 terminal ()
14 {
15     gnome-terminal \
16         --window \
17         --geometry=+100+100 \
18         --hide-menubar \
19         --title='Tech Talk PSE Simple example' \
20         -e '/bin/bash --norc'
21 }