]> git.pld-linux.org Git - packages/mksh.git/blame - mksh-mkshrc
- rel back to 0.1, https://bugs.launchpad.net/mksh/+bug/1179287
[packages/mksh.git] / mksh-mkshrc
CommitLineData
bbdaf468
KK
1# For interactive shell
2
3# PROMPT
09685ada
AM
4PS1='[${LOGNAME-$USER}@${HOSTNAME} $(
5if [[ $PWD = "$HOME" ]]; then
6 echo "~"
7elif [[ $PWD = "/${PWD##*/}" ]]; then
8 print -r -- "$PWD"
bbdaf468 9else
09685ada
AM
10 print -r -- "${PWD##*/}"
11fi)]'
12if (( USER_ID == 0 )); then
13 PS1+='# '
14else
15 PS1+='$ '
bbdaf468 16fi
bbdaf468
KK
17
18# EDITING FUNCTIONS
19set -o emacs
bbdaf468
KK
20bind '^I'=complete-list >/dev/null 2>&1
21
bbdaf468 22# SYSTEM WIDE ALIASES ETC.
09685ada
AM
23for i in /etc/shrc.d/*.sh; do
24 [[ -e $i ]] || continue
25 . "$i"
26done
27unset i
bbdaf468 28
71cdadf2
KK
29HISTFILE=~/.history.mksh
30
bbdaf468 31# vi:syntax=sh
09685ada 32
This page took 0.030594 seconds and 4 git commands to generate.