[shell-common] Add shellcheck lines for all shell files

This commit is contained in:
2026-01-17 15:21:32 +00:00
parent a4d55ff664
commit c88d401471
11 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
# shellcheck shell=bash
# Override application locations to fix XDG
export ANSIBLE_HOME="$XDG_DATA_HOME"/ansible
export LESSHISTFILE="$XDG_STATE_HOME"/less/history

View File

@@ -1,4 +1,5 @@
# shellcheck shell=bash
# AWS functions
# Get the list of AWS profiles
function awsprofiles() {

View File

@@ -1,4 +1,6 @@
# shellcheck shell=bash
# Go stuff
export GOPATH=$XDG_DATA_HOME/go/
export PATH=${GOPATH}bin:$PATH
if [ -z ${GOROOT+x} ] && [ -d /usr/local/go ]; then

View File

@@ -1,2 +1,4 @@
# shellcheck shell=bash
# Python stuff
export POETRY_VIRTUALENVS_IN_PROJECT=true

View File

@@ -1,4 +1,6 @@
# shellcheck shell=bash
# Rust stuff
if [ -f $HOME/.cargo/env ]; then
source $HOME/.cargo/env
fi