git.annexia.org
/
techtalk-pse.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c1e12a3efb3401dedd42f8b2c8353d9d978be030
[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
exec \
16
gnome-terminal \
17
--window \
18
--geometry=+100+100 \
19
--hide-menubar \
20
--disable-factory \
21
-e '/bin/bash --norc' \
22
"$@"
23
}