# Debian mksh # Skeleton ~/.mkshrc file adding a level of indirection # check if this is really mksh # {(( case ${KSH_VERSION:-} in *LEGACY\ KSH*|*MIRBSD\ KSH*) ;; *) \return 0 ;; esac # } # customise your favourite editor here; first one found is used for EDITOR in "${EDITOR:-}" sensible-editor jupp jstar mcedit ed vi editor; do EDITOR=$(\\builtin whence -p "$EDITOR") || EDITOR= [[ -n $EDITOR && -x $EDITOR ]] && break EDITOR= done # source the system-wide mkshrc file [[ -s /etc/mkshrc ]] && \. /etc/mkshrc # work around #813164 \\builtin alias ls='ls -N' # prepend $debian_chroot support to PS1 p=$'\001' if [[ ${PS1:1:1} = $'\r' ]]; then p=${PS1:0:1} PS1=${PS1:2} else p=$'\001' fi [[ -z ${debian_chroot:-} && -r /etc/debian_chroot ]] && \ debian_chroot=$(