-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Embed 'alias' functionality into 'vendor\bin' and Load User Lua files #1871
Conversation
Very nice, especially the prompt stuff, that was requested pretty often, should probably be on the wiki somewhere as well after this has been merged. Have not tested it yet but the code looks fine |
I actually wrote the lua stuff months ago. I've just been having fun this weekend working on stuff that's not work. |
I also figured out how to fix the clink prompt defaulting ot origin as a remote when its a local only repo. Think I'm gonna working the git prompt colors thing next. This was merged into clink-completions |
vendor/init.bat
Outdated
) | ||
|
||
:: Pick right version of clink | ||
echo here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DOH! Should be removed
@daxgames how done are you with this PR? |
Yes |
Fix #1862 - 1.3.6: Error on start path with trailing slash in quotes.
Enable/Disable Cmder features by detected comspec
Add
vendor\lib\lib_base
functioncmder_shell
that sets 3 new env vars"CMDER_SHELL
= [cmd|tcc|tccle]CMDER_CLINK
= [1|0] Default = 1 or OnCMDER_ALIASES
= [1|0] Default = 1 or Onvendor\init.bat
uses the new variables to determine whether to configure/load certain features at startup.Move bin\alias.bat to vendor\bin\alias.cmd
%CMDER_ROOT%\config\user-aliases.bat
to%CMDER_ROOT%\config\user_aliases.cmd
related to Fix #1806 #1675 #1870, Cmder and TCC incompatibility (init.bat startup error)? #1806, and %user-aliases% should be %user_aliases% #1675bin\alias.bat
tovendor\bin\alias.cmd
to embed its functionality into cmder so%CMDER_ROOT%\bin
becomes a completely user controlled folder like%CMDER_ROOT%\config
%CMDER_ROOT%\bin;%CMDER_ROOT%\vendor\bin
to the path.%CMDER_ROOT%\bin\alias.bat
and%CMDER_ROOT%\vendor\bin\alias.cmd
displays the following message:Loads user *.lua files after
%cmder_root%/vendor/clink.lua
Loads *.lua from the following sources in order:
%cmder_root%/vendor/clink.lua
%cmder_root%/vendor/clink-completions/*.lua
%cmder_root%/config/*.lua
[cmder_user_config_root]/*.lua
If specified at launch using-c [cmder_user_config_root]
Allows user more control over clink settings.
%cmder_root%/config/prompt.lua
example:Produces a prompt like:
instead of: