|
- # [ "$BASH" = "" ] && return
- export PS1='\u:\w\$ '
- # source system wide aliases
- alias qemu='sudo qemu'
- alias rm='rm -i'
- alias cp='cp -i'
- alias mv='mv -i'
- alias ..='cd ..'
- alias ll='ls -l'
- alias la='ls -aF'
- alias ls='ls --color=auto -NF --show-control-chars'
- CVSROOT=~/cvsroot
- export CVSROOT
- if [ ! -f /tmp/.startx.sxzzsf.tag ]; then
- touch /tmp/.startx.sxzzsf.tag
- time=5
- trap " echo -n " 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- stty -icanon -echo
- while test $time -gt 0; do
- echo -n -e "Start X window in $time seconds, 'x' to start immediately and others to skip. \r"
- eval read -n 1 -t 1 var && break
- let time=$time-1
- done
- stty icanon echo
- if [ $time = 0 ] || [ "$var" = "x" ] ; then
- unset time var
- echo "We are now starting X window "
- trap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- startx
- fi
- unset time var
- echo
- trap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- fi
复制代码 |
|