License update & egrep replacement for hooks

This commit is contained in:
2023-10-14 12:51:41 -05:00
parent 7ca4227395
commit c106ee874f
6 changed files with 38 additions and 34 deletions

View File

@@ -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