Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace shebang with shellcheck 🎨 #2212

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion completion/available/bundler.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! bash
# shellcheck shell=bash
# bash completion for the `bundle` command.
#
# Copyright (c) 2008 Daniel Luz
Expand Down
2 changes: 1 addition & 1 deletion completion/available/capistrano.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Bash completion support for Capistrano.

export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
Expand Down
2 changes: 1 addition & 1 deletion completion/available/dirs.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Bash completion support for the 'dirs' plugin (commands G, R).

_dirs-complete() {
Expand Down
2 changes: 1 addition & 1 deletion completion/available/kind.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

if _command_exists kind; then
eval "$(kind completion bash)"
Expand Down
2 changes: 1 addition & 1 deletion completion/available/maven.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Bash Maven completion

_mvn()
Expand Down
2 changes: 1 addition & 1 deletion completion/available/nvm.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# nvm (Node Version Manager) completion

Expand Down
2 changes: 1 addition & 1 deletion completion/available/rake.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Bash completion support for Rake, Ruby Make.

export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
Expand Down
2 changes: 1 addition & 1 deletion completion/available/rvm.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Bash completion support for RVM.
# Source: https://rvm.io/workflow/completion

Expand Down
2 changes: 1 addition & 1 deletion completion/available/ssh.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Bash completion support for ssh.

export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
Expand Down
2 changes: 1 addition & 1 deletion completion/available/terraform.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# Make sure terraform is installed
_command_exists terraform || return
Expand Down
2 changes: 1 addition & 1 deletion completion/available/tmux.completion.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# tmux completion
# See: http://www.debian-administration.org/articles/317 for how to write more.
Expand Down
2 changes: 1 addition & 1 deletion custom/example.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
#
# This is an example file. Don't use this for your custom scripts. Instead, create another file within the
# custom directory.
2 changes: 1 addition & 1 deletion plugins/available/sshagent.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
cite about-plugin
about-plugin 'sshagent helper functions'

Expand Down
2 changes: 0 additions & 2 deletions template/bash_profile.template.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env bash

# If not running interactively, don't do anything
case $- in
*i*) ;;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/bash_it/aliases/available/a.aliases.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
# shellcheck shell=bash

alias test_alias="a"
2 changes: 1 addition & 1 deletion test/fixtures/bash_it/aliases/available/b.aliases.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
# shellcheck shell=bash

alias test_alias="b"
2 changes: 1 addition & 1 deletion test/fixtures/bash_it/plugins/available/c.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
# shellcheck shell=bash

alias test_alias="c"
2 changes: 1 addition & 1 deletion themes/cupcake/cupcake.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# Emoji-based theme to display source control management and
# virtual environment info beside the ordinary bash prompt.
Expand Down
2 changes: 1 addition & 1 deletion themes/demula/demula.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# Theme inspired on:
# - Ronacher's dotfiles (mitsuhikos) - http://github.com/mitsuhiko/dotfiles/tree/master/bash/
Expand Down
2 changes: 1 addition & 1 deletion themes/dulcie/dulcie.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# Simplistic one-liner theme to display source control management info beside
# the ordinary Linux bash prompt.
Expand Down
2 changes: 1 addition & 1 deletion themes/duru/duru.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_PREFIX="${cyan} on ${green}"
SCM_THEME_PROMPT_SUFFIX=""
Expand Down
2 changes: 1 addition & 1 deletion themes/elixr/elixr.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/emperor/emperor.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/envy/envy.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" |"
Expand Down
2 changes: 1 addition & 1 deletion themes/font/font.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
#
# One line prompt showing the following configurable information
# for git:
Expand Down
2 changes: 1 addition & 1 deletion themes/gitline/gitline.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

. "$BASH_IT/themes/gitline/powerline.base.bash"

Expand Down
2 changes: 1 addition & 1 deletion themes/hawaii50/hawaii50.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
#
# This theme was obviously inspired a lot by
#
Expand Down
2 changes: 1 addition & 1 deletion themes/iterate/iterate.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
SCM_GIT_CHAR="± "
SCM_HG_CHAR="☿ "
SCM_SVN_CHAR="⑆ "
Expand Down
2 changes: 1 addition & 1 deletion themes/liquidprompt/liquidprompt.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Wrapper to use liquidprompt with bashit

targetdir="$BASH_IT/themes/liquidprompt/liquidprompt"
Expand Down
2 changes: 1 addition & 1 deletion themes/luan/luan.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/metal/metal.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# Emoji-based theme to display source control management and
# virtual environment info beside the ordinary bash prompt.
Expand Down
2 changes: 1 addition & 1 deletion themes/minimal/minimal.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_PREFIX="${cyan}(${green}"
SCM_THEME_PROMPT_SUFFIX="${cyan})"
Expand Down
2 changes: 1 addition & 1 deletion themes/n0qorg/n0qorg.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# n0qorg theme by Florian Baumann <flo@noqqe.de>

## look-a-like
Expand Down
2 changes: 1 addition & 1 deletion themes/newin/newin.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/powerline-multiline/powerline-multiline.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

. "$BASH_IT/themes/powerline-multiline/powerline-multiline.base.bash"

Expand Down
2 changes: 1 addition & 1 deletion themes/powerline-naked/powerline-naked.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

. "$BASH_IT/themes/powerline-naked/powerline-naked.base.bash"

Expand Down
2 changes: 1 addition & 1 deletion themes/powerline-plain/powerline-plain.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

. "$BASH_IT/themes/powerline-plain/powerline-plain.base.bash"

Expand Down
2 changes: 1 addition & 1 deletion themes/powerturk/powerturk.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# Power-Turk theme for bash-it
# Author (C) 2015 Ahmed Seref Guneysu

Expand Down
2 changes: 1 addition & 1 deletion themes/primer/primer.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# based of the candy theme, but minimized by odbol
function prompt_command() {
Expand Down
2 changes: 1 addition & 1 deletion themes/pro/pro.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/radek/radek.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

GIT_THEME_PROMPT_DIRTY="${red}✗"
GIT_THEME_PROMPT_CLEAN="${bold_green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/rana/rana.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# Theme inspired on:
# - Ronacher's dotfiles (mitsuhikos) - http://github.com/mitsuhiko/dotfiles/tree/master/bash/
Expand Down
2 changes: 1 addition & 1 deletion themes/redline/redline.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

. "$BASH_IT/themes/powerline/powerline.base.bash"

Expand Down
2 changes: 1 addition & 1 deletion themes/robbyrussell/robbyrussell.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_DIRTY=" ${bold_yellow}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
Expand Down
2 changes: 1 addition & 1 deletion themes/roderik/roderik.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
Expand Down
2 changes: 1 addition & 1 deletion themes/simple/simple.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

# prompt themeing

Expand Down
2 changes: 1 addition & 1 deletion themes/tonka/tonka.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

__tonka_time() {
THEME_CLOCK_FORMAT="%H%M"
Expand Down
2 changes: 1 addition & 1 deletion themes/tonotdo/tonotdo.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash

SCM_THEME_PROMPT_PREFIX=" ${purple}"
SCM_THEME_PROMPT_SUFFIX=" ${normal}"
Expand Down
2 changes: 1 addition & 1 deletion themes/tylenol/tylenol.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
#
# Based on 'bobby' theme with the addition of virtualenv_prompt
#
Expand Down
2 changes: 1 addition & 1 deletion themes/wanelo/wanelo.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" |"
Expand Down
2 changes: 1 addition & 1 deletion themes/zitron/zitron.theme.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
# zitron theme by Florian Baumann <flo@noqqe.de>

## git-theme
Expand Down