License update & egrep replacement for hooks
This commit is contained in:
@@ -90,7 +90,7 @@ function vncdesktop() {
|
||||
alias vi=vim
|
||||
alias view="vim -R"
|
||||
alias top="top -o %CPU"
|
||||
alias make-entrypoints="egrep '^[a-zA-Z0-9\-]*:' Makefile"
|
||||
alias make-entrypoints="grep -E '^[a-zA-Z0-9\-]*:' Makefile"
|
||||
alias rdns="dig +short -x "
|
||||
alias dns="dig +short "
|
||||
export WEECHAT_HOME=$HOME/.weechat
|
||||
@@ -114,6 +114,6 @@ if [ -n "$SSH_CLIENT" ]; then
|
||||
fi;
|
||||
|
||||
### XFCE4 ###
|
||||
elif [ `who -m | egrep "^$(whoami)" | awk '{ print $2; }' | egrep -c "^tty"` -eq 1 ] && [ -x /usr/sbin/startxfce4 ] && [ `pgrep -ac xinit` -eq 0 ] && [ `whoami` != 'root' ]; then
|
||||
elif [ `who -m | grep -E "^$(whoami)" | awk '{ print $2; }' | grep -E -c "^tty"` -eq 1 ] && [ -x /usr/sbin/startxfce4 ] && [ `pgrep -ac xinit` -eq 0 ] && [ `whoami` != 'root' ]; then
|
||||
exec startxfce4
|
||||
fi
|
||||
|
Reference in New Issue
Block a user