Cmder: Difference between revisions
From wikinotes
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| cmd rcfile || <code>C:\Tools\cmder\config\ | | cmd rcfile || <code>C:\Tools\cmder\config\user_profile.cmd</code> | ||
|- | |- | ||
|} | |} | ||
Line 21: | Line 21: | ||
== set environment vars == | == set environment vars == | ||
<source lang="batch"> | <source lang="batch"> | ||
REM C:\Tools\cmder\config\user_profile.cmd | |||
set VAR=blah | set VAR=blah | ||
</source> | </source> | ||
Line 40: | Line 41: | ||
source: https://github.com/cmderdev/cmder/issues/447 | source: https://github.com/cmderdev/cmder/issues/447 | ||
</blockquote><!-- configuration --> | </blockquote><!-- configuration --> | ||
= Usage = | |||
<blockquote> | |||
Open Admin CMDer | |||
<syntaxhighlight lang="yaml"> | |||
Shift + Click executable: | |||
Run as Administrator | |||
</syntaxhighlight> | |||
Privilege escalation within cmder using [[gsudo]] | |||
<syntaxhighlight lang="bash"> | |||
gsudo # like `sudo -i` | |||
gsudo echo foo # run command as superuser | |||
</syntaxhighlight> | |||
</blockquote><!-- Usage --> |
Latest revision as of 18:52, 27 August 2023
cmder is the closest that I have come to using tmux natively on windows, and that makes me very happy.
- tmux-style panes
- unix-style tab completion
- tabs
- colours
- colourschemes
Locations
cmd rcfile C:\Tools\cmder\config\user_profile.cmd
Configuration
set environment vars
REM C:\Tools\cmder\config\user_profile.cmd set VAR=blahdisable git prompt
C:/tools/cmder/vender/clink.lua
# remove {git}{hg} from local cmder_prompt local cmder_prompt = "\x1b[1;32;40m{cwd}\n\x1b[1;30;40m{lamb} \x1b[0m" # comment out the clink hooks --clink.prompt.register_filter(hg_prompt_filter, 50) --clink.prompt.register_filter(git_prompt_filter, 50)
Usage
Open Admin CMDer
Shift + Click executable: Run as AdministratorPrivilege escalation within cmder using gsudo
gsudo # like `sudo -i` gsudo echo foo # run command as superuser