Update for profile files

This commit is contained in:
2024-08-12 17:26:50 -05:00
parent 3253c180fc
commit 1fd8e7dc7a
5 changed files with 27 additions and 3 deletions

View 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