]> git.pld-linux.org Git - packages/mksh.git/blame_incremental - mksh-mkshrc
rel 3; drop builtin cat and sleep
[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# search history with prefix support
22bind '^XA'=search-history-up
23bind '^XB'=search-history-down
24
25# SYSTEM WIDE ALIASES ETC.
26for i in /etc/shrc.d/*.sh; do
27 [[ -e $i ]] || continue
28 . "$i"
29done
30unset i
31
32HISTFILE=~/.history.mksh
33
34# vi:syntax=sh
35
This page took 0.024453 seconds and 4 git commands to generate.