From d576a3f8e77b5e743a22a416f6be29470849a2da Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 1 Mar 2025 12:05:26 +0100 Subject: [PATCH] Add 'shellcheck=bash' and editor hints to bash config/aliases --- .bash_aliases/all | 1 + .bash_aliases/dualboot | 1 + .bash_aliases/hosts/flex-arch | 1 + .bashrc.d/editor | 1 + .bashrc.d/hosts/flex-arch | 3 ++- .bashrc.d/prompt | 2 ++ 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.bash_aliases/all b/.bash_aliases/all index f967326..3e6588b 100644 --- a/.bash_aliases/all +++ b/.bash_aliases/all @@ -1,3 +1,4 @@ +# shellcheck shell=bash # vim: set ft=bash : # Alias aliases diff --git a/.bash_aliases/dualboot b/.bash_aliases/dualboot index a7b0ed2..96d394f 100644 --- a/.bash_aliases/dualboot +++ b/.bash_aliases/dualboot @@ -1,3 +1,4 @@ +# shellcheck shell=bash # vim: set ft=bash : reboot-to-windows () diff --git a/.bash_aliases/hosts/flex-arch b/.bash_aliases/hosts/flex-arch index 37d3e72..7f5d621 100644 --- a/.bash_aliases/hosts/flex-arch +++ b/.bash_aliases/hosts/flex-arch @@ -1,3 +1,4 @@ +# shellcheck shell=bash # vim: set ft=bash : source "$HOME/.bash_aliases/dualboot" diff --git a/.bashrc.d/editor b/.bashrc.d/editor index 28b6910..fbf0a99 100644 --- a/.bashrc.d/editor +++ b/.bashrc.d/editor @@ -1,3 +1,4 @@ +# shellcheck shell=bash # vim: set ft=bash : # Set NeoVim as default editor diff --git a/.bashrc.d/hosts/flex-arch b/.bashrc.d/hosts/flex-arch index e1d00ba..66d4660 100644 --- a/.bashrc.d/hosts/flex-arch +++ b/.bashrc.d/hosts/flex-arch @@ -1,4 +1,5 @@ -# Laptop configuration +# shellcheck shell=bash +# vim: set ft=bash : # >>> mamba initialize >>> # !! Contents within this block are managed by 'mamba init' !! diff --git a/.bashrc.d/prompt b/.bashrc.d/prompt index 9eb2284..a739826 100644 --- a/.bashrc.d/prompt +++ b/.bashrc.d/prompt @@ -1,4 +1,6 @@ +# shellcheck shell=bash # vim: set ft=bash : + get_branch_name() { git symbolic-ref --quiet --short HEAD 2>/dev/null \ || git rev-parse --short HEAD 2>/dev/null \