Skip to content

Commit a715c1d

Browse files
authored
chore(zsh): apply standard modelines and editorconfig
* chore(zsh): apply standard modelines across plugins and libraries * chore(config): add editorconfig formatting baseline * ci(workflows): enforce top-level concurrency --------- Co-authored-by: Salvydas Lukosius <ss-o@users.noreply.github.com>
1 parent 31b10db commit a715c1d

5 files changed

Lines changed: 35 additions & 5 deletions

File tree

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.{md,mdx,rst}]
12+
trim_trailing_whitespace = false
13+
14+
[Makefile*]
15+
indent_style = tab
16+
indent_size = 4
17+
18+
[*.{py,rb}]
19+
indent_size = 4
20+
21+
[*.{go,java}]
22+
indent_style = tab
23+
indent_size = 4

.github/workflows/deploy-gh-pages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ on:
1313
permissions:
1414
contents: write
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: false
19+
1620
jobs:
1721
deploy:
1822
if: github.repository == 'z-shell/src'
1923
environment:
2024
name: github-pages
2125
runs-on: ubuntu-latest
2226
timeout-minutes: 15
23-
concurrency:
24-
group: ${{ github.workflow }}-${{ github.ref }}
2527
steps:
2628
- name: ⤵️ Check out code from GitHub
2729
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/win-install.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
permissions:
2020
contents: read
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
25+
2226
jobs:
2327
shellcheck:
2428
runs-on: ubuntu-latest
@@ -33,9 +37,6 @@ jobs:
3337
runs-on: windows-latest
3438
timeout-minutes: 30
3539
needs: [shellcheck]
36-
concurrency:
37-
group: ci-${{ github.workflow }}-${{ github.ref }}
38-
cancel-in-progress: false
3940
steps:
4041
- name: 🪟 Set CRLF (Windows)
4142
run: |

public/zsh/snippets/color.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
2+
# vim: ft=zsh sw=2 ts=2 et
13
# Source: https://github.com/molovo/color
24
# License: MIT — Copyright (c) 2015 Joe Letchford
35
# Maintained by z-shell/src — https://github.com/z-shell/src

public/zsh/snippets/welcome.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
2+
# vim: ft=zsh sw=2 ts=2 et
13
+zi-message "{auto}\`Welcome to Zi :)\`"
24
sleep 1
35
+zi-message "{hi}I am the snippet\!"

0 commit comments

Comments
 (0)