projects
/
saartuer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots of updates, amongst others:
[saartuer.git]
/
tyshell
diff --git
a/tyshell
b/tyshell
index 090403e4dffc84762b44dc63d7cf1df28f1d4242..9350e125272cd4f2ff7e046808ed0364d96ec2ff 100755
(executable)
--- a/
tyshell
+++ b/
tyshell
@@
-9,8
+9,7
@@
import socket
tuerSock = "/run/tuer.sock"
# use a histfile
tuerSock = "/run/tuer.sock"
# use a histfile
-# FIXME: Why not ".tyshellhist"?
-histfile = os.path.join(os.path.expanduser("~"), ".pyshellhist")
+histfile = os.path.join(os.path.expanduser("~"), ".tyshellhist")
try:
readline.read_history_file(histfile)
except IOError:
try:
readline.read_history_file(histfile)
except IOError:
@@
-20,7
+19,7
@@
atexit.register(readline.write_history_file, histfile)
atexit.register(print, "Bye")
# available commands
atexit.register(print, "Bye")
# available commands
-def help(c):
+def help
cmd
(c):
print("Available commands: %s" % ", ".join(sorted(commands.keys())))
def extcmd(cmd):
print("Available commands: %s" % ", ".join(sorted(commands.keys())))
def extcmd(cmd):
@@
-48,7
+47,7
@@
def exitcmd(c):
commands = {
'exit': exitcmd,
commands = {
'exit': exitcmd,
- 'help': help,
+ 'help': help
cmd
,
'open': sendcmd(tuerSock, 'open'),
'close': sendcmd(tuerSock, 'close'),
'buzz': sendcmd(tuerSock, 'buzz'),
'open': sendcmd(tuerSock, 'open'),
'close': sendcmd(tuerSock, 'close'),
'buzz': sendcmd(tuerSock, 'buzz'),