浏览代码

change way to run x

pull/1/head
10sr 12 年前
父节点
当前提交
8dbe89fd4e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc 查看文件

@@ -108,6 +108,7 @@ alias p="$PAGER"
alias c=cat
alias pcalc="python -i -c 'from math import *' "
alias py3=python3
alias py2=python2
alias _reloadrc="test -f ~/.bashrc && source ~/.bashrc"
alias sudo="sudo " # use aliases through sudo
alias e3=e3em
@@ -166,7 +167,7 @@ showinfo(){

x(){
if [[ -z $DISPLAY ]] && ! [[ -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
exec nohup startx # >~/.backup/log/xorg.log 2>&1 &
nohup startx # >~/.backup/log/xorg.log 2>&1 &
else
echo "X cant be started! Maybe another X is already running!" 1>&2
fi


正在加载...
取消
保存