Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load .slack from homedir. #52

Closed
burtonator opened this issue Dec 30, 2017 · 2 comments
Closed

Load .slack from homedir. #52

burtonator opened this issue Dec 30, 2017 · 2 comments

Comments

@burtonator
Copy link

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

@burtonator
Copy link
Author

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.

@rockymadden
Copy link
Owner

rockymadden commented Jan 2, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants