Update for profile files
This commit is contained in:
8
EtcFiles/profile.d/shadowarch-user-weechat.sh
Normal file
8
EtcFiles/profile.d/shadowarch-user-weechat.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
# Three start conditions:
|
||||
# * Interactive shell
|
||||
# * Weechat is installed
|
||||
# * User doesn't have a running weechat process
|
||||
# * User isn't root
|
||||
if [[ $- == *i* ]] && [ -f `which weechat` ] && [ `ps -u $USER | grep -c weechat` -eq 0 ] && [ $USER != 'root' ]; then
|
||||
weechat;
|
||||
fi
|
||||
Reference in New Issue
Block a user