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