rockymadden/slack-cli

Load .slack from homedir.

burtonator opened this issue · 2 comments

Would be nice to have a .slack file in my home dir.

On our production boxes we could then have slack automatically configured easily by automation and easily send messages.

We could use .bashrc but that's kind of hacky IMO

if [ -f "${HOME}/.slack" ]; then
  token=$(sed -n '1p' < "${etcdir}/.slack")
fi

.. would do it. That would be the default then you could slack init or set an env to override it.

This should be possible via make install as shown here: https://github.com/rockymadden/slack-cli#via-make

You would set the etcdir to your home directory. Please let me know if this doesn't work and we can reopen.