]> git.pld-linux.org Git - packages/mksh.git/blame - mksh-mkshrc
- provide /bin/ksh symlink; make builder script working (from ksh devs)
[packages/mksh.git] / mksh-mkshrc
CommitLineData
bbdaf468
KK
1# For interactive shell
2
3# PROMPT
4if [ `id -u` -eq 0 ]; then
5 PS1='[${LOGNAME-$USER}@${HOSTNAME} `
6 if [ "$PWD" = "$HOME" ]; then
7 echo "~";
8 elif [ "$PWD" = "/${PWD##*/}" ]; then
9 echo $PWD;
10 else
11 echo ${PWD##*/};
12 fi`]# '
13else
14 PS1='[${LOGNAME-$USER}@${HOSTNAME} `
15 if [ "$PWD" = "$HOME" ]; then
16 echo "~";
17 elif [ "$PWD" = "/${PWD##*/}" ]; then
18 echo $PWD;
19 else
20 echo ${PWD##*/};
21 fi`]$ '
22fi
23export PS1
24
25# EDITING FUNCTIONS
26set -o emacs
27bind '^I'=complete >/dev/null 2>&1
28bind '^I'=complete-list >/dev/null 2>&1
29
30case $TERM in
31 nxterm|xterm*|konsole*)
32 bind '^[[H'=beginning-of-line >/dev/null 2>&1
33 bind '^[[F'=end-of-line >/dev/null 2>&1
34 ;;
35 linux|rxvt*)
36 bind '^[[1~'=beginning-of-line >/dev/null 2>&1
37 bind '^[[4~'=end-of-line >/dev/null 2>&1
38 ;;
39esac
40
41# SYSTEM WIDE ALIASES ETC.
42if [ "`echo /etc/shrc.d/*.sh`" != "/etc/shrc.d/*.sh" ]; then
43 for i in /etc/shrc.d/*.sh ; do
44 . $i
45 done
46 unset i
47fi
48
71cdadf2
KK
49HISTFILE=~/.history.mksh
50
bbdaf468 51# vi:syntax=sh
This page took 0.536254 seconds and 4 git commands to generate.