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