Adding weechat group to profile

This commit is contained in:
DarkFeather 2024-09-11 16:27:55 -05:00
parent 9355f4f752
commit 1e4d4a806a
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -3,6 +3,7 @@
# * Weechat is installed # * Weechat is installed
# * User doesn't have a running weechat process # * User doesn't have a running weechat process
# * User isn't root # * User isn't root
if [[ $- == *i* ]] && [ -f `which weechat` ] && [ `ps -u $USER | grep -c weechat` -eq 0 ] && [ $USER != 'root' ]; then # * User is in the weechat group
if [[ $- == *i* ]] && [ -f `which weechat` ] && [ `ps -u $USER | grep -c weechat` -eq 0 ] && [ $USER != 'root' ] && [[ "$(id)" =~ weechat ]]; then
weechat; weechat;
fi fi