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

Get config_dir from env TMUXP_CONFIG_DIR or TMUXP_DIR #207

Merged
merged 6 commits into from
Feb 7, 2017
Merged

Get config_dir from env TMUXP_CONFIG_DIR or TMUXP_DIR #207

merged 6 commits into from
Feb 7, 2017

Conversation

Ilyes512
Copy link
Contributor

This make the tmuxp config dir configurable by setting env variables TMUXP_CONFIG_DIR or TMUXP_DIR.

@codecov-io
Copy link

codecov-io commented Jan 31, 2017

Codecov Report

Merging #207 into master will increase coverage by 0.04%.

@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
+ Coverage   83.82%   83.87%   +0.04%     
==========================================
  Files           5        5              
  Lines         742      744       +2     
==========================================
+ Hits          622      624       +2     
  Misses        120      120
Impacted Files Coverage Δ
tmuxp/cli.py 65.27% <100%> (+0.24%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ab1f17...3805520. Read the comment docs.

@Ilyes512
Copy link
Contributor Author

Ilyes512 commented Feb 4, 2017

Any feedback?

tmuxp/cli.py Outdated
return os.path.expanduser(os.environ['TMUXP_CONFIG_DIR'])

if 'TMUXP_DIR' in os.environ:
if 'TMUXP_CONFIGDIR' in os.environ:
return os.path.expanduser(os.environ['TMUXP_DIR'])
Copy link
Contributor Author

@Ilyes512 Ilyes512 Feb 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know check for TMUXP_CONFIGDIR and then read the value of TMUXP_DIR.

@tony tony merged commit ca6e6c1 into tmux-python:master Feb 7, 2017
@Ilyes512
Copy link
Contributor Author

Ilyes512 commented Feb 7, 2017

Nice :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants