Comments (3)
I'm personally not convinced that such feature is useful but if you are going to invest your time to implement it, I'm wiling to merge it if it fulfills the following criteria:
- It must support multiple config files which will override each others variables in the order the files are specified on the command line.
- Variables from the config file are merged with env vars the way that env vars have always the highest priority.
- Use TOML as the configuration format.
Example:
$ export GBT_CAR_DIR_PRECISSION=9999
$ cat /path/to/file1
# Global variables
separator = ""
# Dir car variables
[dir]
fg = "yellow"
$ cat /path/to/file2
# Dir car variables
[dir]
fg = "red"
depth = 3
$ gbt --config /path/to/file1 --config /path/to/file2
As a result of the above, the Dir
car will end up with red
foreground and depth of 9999
.
from gbt.
Thanks or your suggestion. You can always create a file with all the env variables and source that file in your .bashrc
file. For now I have no intention to support any other configuration.
from gbt.
My point was that it muddies the environment, typing env will give you a million variables. Imo these are unnecessary. If I were to raise a PR, would it be accepted (providing you're happy with the implementation)?
from gbt.
Related Issues (20)
- Problem with local Status car HOT 4
- Question: Automatically remove Kubectl CAR HOT 2
- Bash activation HOT 7
- Question: Coloring the separator of a particular car HOT 3
- Question about dynamic configuration HOT 1
- Conditional display of kubectl car HOT 2
- Custom car become static rather then dynamic HOT 4
- Enhancement: Caching of Git car HOT 3
- Correcting font name HOT 1
- Add installation support through Scoop (Windows) HOT 6
- Double width icons. HOT 4
- Missed string in PowerShell because of misquoting HOT 6
- Next release? HOT 1
- Gcp car not rendering HOT 3
- GBT_DIR Car not updating the current directory HOT 1
- Wrong pathname HOT 3
- messed up prompt on darwin/arm64 (Apple Silicon) HOT 5
- Missing native binaries for `darwin/arm64` HOT 1
- cannot get Azure car to run HOT 2
- bash - inline history edit breaks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbt.