Open GijsTimmers opened 9 years ago
:+1:
We should also detect automatically in the Makefile whether it is a mac and then if a user types exit
don't exit, but display "[Process completed]" and don't exit, but go in an infinite loop ;-)
Also: replace cat
by lolcat
, if possible. See attached screenshot. Doing so would require lolcat
as a dependency in packaging.
I have a better idea for exiting with an error status: bring back the system beep, or play this beep-compilation
I have thought about this. I think it's probably a bad idea to hard include more and vague dependencies such as lolcat
, sl
, beep
, etc. in
jsh`. This doesn't mean we can't build a funmode, rather we shouldn't hard-code it.
A promising idea, I think, is to include some kind of hooks onto several jsh-events. Let me explain: jsh
would offer some way (e.g. ~/.jshrc
) for a user to register a shell-command-string as a "hook" for a specific "jsh-event". This shell command string should then be interpreted from within the jsh
source, every time the specified "jsh-event" happens. This way we would have a mechanism to allow a user to customize the shell's behavior.
A (non-exhaustive) list of possible "jsh-events" could for example be:
jshrc
fileexit
--> maybe we won't need a "hook" here, but rather a jshlogout
file or soThis wouldn't be too hard to implement, I think. Some built_ins for setting the hooks and then some interface header file for hooks probably and calling the hook_methods at the right time in the source code...
You're making a huge mistake.
tell me more
fine
We should create a
--fun-mode
, for experimenting with cool stuff. For example:sl
withjo-shell
on it in two goods wagons.