1#!/bin/bash 2 3set "$(dirname "$0")"/X11.bin "${@}" 4 5if [ -x ~/.x11run ]; then 6 exec ~/.x11run "${@}" 7fi 8 9case $(basename "${SHELL}") in 10 bash) exec -l "${SHELL}" --login -c 'exec "${@}"' - "${@}" ;; 11 ksh|sh|zsh) exec -l "${SHELL}" -c 'exec "${@}"' - "${@}" ;; 12 csh|tcsh) exec -l "${SHELL}" -c 'exec $argv:q' "${@}" ;; 13 es|rc) exec -l "${SHELL}" -l -c 'exec $*' "${@}" ;; 14 *) exec "${@}" ;; 15esac 16