真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

Sublime怎么更改Powershell為CMD

下面由sublime教程欄目給大家介紹關(guān)于Sublime Terminal插件Win7下怎么更改Powershell為CMD,希望對(duì)需要的朋友有所幫助!

Sublime Terminal插件Win7下更改Powershell為CMD

創(chuàng)新互聯(lián)長(zhǎng)期為1000多家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營(yíng)造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為嘉禾企業(yè)提供專業(yè)的網(wǎng)站設(shè)計(jì)制作、網(wǎng)站建設(shè),嘉禾網(wǎng)站改版等技術(shù)服務(wù)。擁有十年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。

至于為什么要更改,我想你肯定也和我一樣,不想裝Powershell,盡管它很強(qiáng)大,很強(qiáng)大...

話不多說,需要的請(qǐng)看操作:

找到插件安裝位置,修改”Terminal.py”文件:

if os.name == 'nt': # if os.path.exists(os.environ['SYSTEMROOT'] + # '\\System32\\WindowsPowerShell\\v1.0\\powershell.exe'): # # This mimics the default powershell colors since calling # # subprocess.POpen() ends up acting like launching powershell # # from cmd.exe. Normally the size and color are inherited # # from cmd.exe, but this creates a custom mapping, and then # # the LaunchPowerShell.bat file adjusts some other settings. # key_string = 'Console\\%SystemRoot%_system32_' + # 'WindowsPowerShell_v1.0_powershell.exe' # try: # key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, # key_string) # except (WindowsError): # key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, # key_string) # _winreg.SetValueEx(key, 'ColorTable05', 0, # _winreg.REG_DWORD, 5645313) # _winreg.SetValueEx(key, 'ColorTable06', 0, # _winreg.REG_DWORD, 15789550) # default = os.path.join(package_dir, 'PS.bat') # sublime_terminal_path = os.path.join(sublime.packages_path(), installed_dir) # # This should turn the path into an 8.3-style path, getting around unicode # # issues and spaces # buf = create_unicode_buffer(512) # if windll.kernel32.GetShortPathNameW(sublime_terminal_path, buf, len(buf)): # sublime_terminal_path = buf.value # os.putenv('sublime_terminal_path', sublime_terminal_path.replace(' ', '` ')) # else : default = os.environ['SYSTEMROOT'] + '\\System32\\cmd.exe' elif sys.platform == 'darwin':

想必小伙伴們已經(jīng)看出來(lái)了,其實(shí)就是將Powershell判斷注釋掉,只要是Windows,就直接將Terminal路徑設(shè)置為cmd路徑。


網(wǎng)站欄目:Sublime怎么更改Powershell為CMD
網(wǎng)站URL:http://weahome.cn/article/cgheig.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部