Skip to content

Commit 9c102a5

Browse files
authored
languages: Add runnable support for bash (zed-industries#48807)
Bash: <img width="469" height="149" alt="bash" src="https://github.com/user-attachments/assets/179c9157-58b4-49a3-a166-78486eee5334" /> Bash output: <img width="319" height="77" alt="bash_output" src="https://github.com/user-attachments/assets/2f5f6582-8538-4508-81cc-84007779d359" /> Zsh: <img width="414" height="139" alt="zsh" src="https://github.com/user-attachments/assets/23cbb61c-6af1-4956-91a6-39d00319d4fc" /> Zsh output: <img width="326" height="69" alt="zsh_output" src="https://github.com/user-attachments/assets/beb76f68-fb0c-4140-91ea-bf66a50294fc" /> Dash: <img width="343" height="121" alt="dash" src="https://github.com/user-attachments/assets/47f44fda-2130-4076-9f65-12c5b1094a53" /> Dash output: <img width="343" height="75" alt="dash_output" src="https://github.com/user-attachments/assets/176459a2-9dd7-4bd9-8a3d-a7fe39d3b7c3" /> - [x] Code Reviewed - [x] Manual QA Release Notes: - Added runnable support for bash. Co-authored-by: ozacod <ozacod@users.noreply.github.com>
1 parent 71de6ed commit 9c102a5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

crates/languages/src/bash.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub(super) fn bash_task_context() -> ContextProviderWithTasks {
1111
TaskTemplate {
1212
label: format!("run '{}'", VariableName::File.template_value()),
1313
command: VariableName::File.template_value(),
14+
tags: vec!["bash-script".to_owned()],
1415
..TaskTemplate::default()
1516
},
1617
]))
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
; Run bash scripts
2+
(
3+
(program . (_) @run) @_bash-script
4+
(#set! tag bash-script)
5+
)

0 commit comments

Comments
 (0)