Sublime Text İçine Wsl Bash Ekleme
Buradaki adımlarla Sublime Text'e Terminus Package ile bash eklenebilir.
Öncelikle Terminus isimli Package'ı indirmek için;
Sublime Textte "Ctrl Shift P" tuşlarına basıp Command Palette'ı açın.
Install Package'ı seçtikten sonra , Terminus diye aratıp Terminus paketini indirin.
Sonrasında Terminus otomatik olarak yüklenecektir.
Sonra Terminus'taki Command Palette'ı yukarıdaki şekildeki gibi açıp içine şu kodu ekleyin.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | ///////////////////////////////////////////////////////////
// Sglbl
//////////////////////////////////////////////////////////
[
// Opens Command Prompt in the panel at the bottom of the screen
{
"caption": "Command Prompt (panel)",
"command": "terminus_open",
"args" : {
"cmd": "cmd.exe",
"cwd": "${file_path:${folder}}",
"title": "Command Prompt",
"panel_name": "Terminus"
}
}
]
|
Sonrasında aynı yerden Key Bindings'e girip şu kodu ekleyin.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 | ///////////////////////////////////////////////////////////
// Sglbl
//////////////////////////////////////////////////////////
[
// Togle Terminus bottom Open/Closed when Alt+' is pressed
{
// The key press to look out for
"keys": ["alt+`"],
// Toggle the panel
"command": "toggle_terminus_panel"
},
// Open cmd.exe Command Prompt when Alt+1 is pressed
{
// The key press to look out for
"keys": ["alt+1"],
// Tell terminus to open something
"command": "terminus_open",
// Tell terminus what to open
"args" : {
// Open Command Prompt
"cmd": ["C:\\Windows\\system32\\wsl.exe" ],
// Provide Command Prompt with Current Directory
"cwd": "${file_path:${folder}}",
//put it in the panel at the bottom of the screen
"panel_name": "Terminus"
}
}
]
|
Artık Alt + 1 tuşuyla terminali açabilir, Alt + " tuşuyla da kapatabilirsiniz.
Terminal açıkken ekrandan geçici olarak gizlemek için Alt + " , tamamen sonlandırmak için Ctrl D kullabilirsiniz.
Yapılacak işlem bu kadar. İstiyorsanız;
Ctrl Shift P ile Command Palette'i açıp "Terminus Utilities: Select Theme" ile tema seçebilirsiniz.