commit 71147e50931f5da001c51bc2ae2c557a8127c92a
parent f1c84e397e8924409e1285684808763017fc4e64
Author: sin <sin@2f30.org>
Date: Fri, 21 Feb 2014 16:34:40 +0000
Add .profile and fixup .mkshrc
Diffstat:
4 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/etc/skel/.mkshrc b/etc/skel/.mkshrc
@@ -1,7 +1,4 @@
-PATH=/bin
-TERM=linux
-PS1='$(hostname)# '
-export PATH TERM PS1
+PS1='# '
# C-l should clear the screen
bind -m '^L'='^U'clear'^J''^Y'
diff --git a/etc/skel/.profile b/etc/skel/.profile
@@ -0,0 +1,14 @@
+PATH=/bin
+TERM=linux
+HISTFILE=~/.mksh_history
+EDITOR=jmacs
+PAGER=less
+ENV=~/.mkshrc
+export PATH TERM HISTFILE EDITOR PAGER ENV
+
+set -o emacs
+set -o bgnice
+set -o notify
+set -o utf8-mode
+
+umask 022
diff --git a/root/.mkshrc b/root/.mkshrc
@@ -0,0 +1,4 @@
+PS1='# '
+
+# C-l should clear the screen
+bind -m '^L'='^U'clear'^J''^Y'
diff --git a/root/.profile b/root/.profile
@@ -1,7 +1,14 @@
PATH=/bin
TERM=linux
-PS1='$(hostname)# '
-export PATH TERM PS1
+HISTFILE=~/.mksh_history
+EDITOR=jmacs
+PAGER=less
+ENV=~/.mkshrc
+export PATH TERM HISTFILE EDITOR PAGER ENV
-# C-l should clear the screen
-bind -m '^L'='^U'clear'^J''^Y'
+set -o emacs
+set -o bgnice
+set -o notify
+set -o utf8-mode
+
+umask 022