Skip to content

Instantly share code, notes, and snippets.

@poppen
Created March 22, 2010 12:14
Show Gist options
  • Save poppen/340027 to your computer and use it in GitHub Desktop.
Save poppen/340027 to your computer and use it in GitHub Desktop.
.mkshrc.diff
--- /tmp/dot.mkshrc 2010-03-22 21:11:22.000000000 +0900
+++ ./dot.mkshrc 2010-03-22 21:05:28.000000000 +0900
@@ -5,6 +5,7 @@
: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
[[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)
: ${HOSTNAME:=nil}; if (( USER_ID )); then PS1='$'; else PS1='#'; fi
+: ${HISTFILE:=~/.mksh_history}
function precmd {
typeset -i e=$?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment