Skip to content

Commit

Permalink
treewide: add 'shellcheck shell' directives
Browse files Browse the repository at this point in the history
I used 'bash' for zsh files, since that's the closest and `shell=zsh` is
not supported [1].

[1]: koalaman/shellcheck#809
  • Loading branch information
ambroisie committed Aug 31, 2023
1 parent 1376942 commit 861136c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p bitwarden-cli git gnupg jq nix
# shellcheck shell=bash

# Command failure is script failure
set -e
Expand Down
2 changes: 2 additions & 0 deletions home/zsh/completion-styles.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

# Style the completion a bit
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# Show a prompt on selection
Expand Down
1 change: 1 addition & 0 deletions home/zsh/extra-mappings.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# shellcheck shell=bash
# shellcheck disable=2154

# Fix Ctrl+u killing from the cursor instead of the whole line
Expand Down
2 changes: 2 additions & 0 deletions home/zsh/options.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

# Show an error when a globbing expansion doesn't find any match
setopt nomatch
# List on ambiguous completion and Insert first match immediately
Expand Down

0 comments on commit 861136c

Please sign in to comment.