Add 'shellcheck=bash' and editor hints to bash config/aliases

master
Hektor Misplon 2025-03-01 12:05:26 +01:00
parent 7149917762
commit d576a3f8e7
6 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# shellcheck shell=bash
# vim: set ft=bash : # vim: set ft=bash :
# Alias aliases # Alias aliases

View File

@ -1,3 +1,4 @@
# shellcheck shell=bash
# vim: set ft=bash : # vim: set ft=bash :
reboot-to-windows () reboot-to-windows ()

View File

@ -1,3 +1,4 @@
# shellcheck shell=bash
# vim: set ft=bash : # vim: set ft=bash :
source "$HOME/.bash_aliases/dualboot" source "$HOME/.bash_aliases/dualboot"

View File

@ -1,3 +1,4 @@
# shellcheck shell=bash
# vim: set ft=bash : # vim: set ft=bash :
# Set NeoVim as default editor # Set NeoVim as default editor

View File

@ -1,4 +1,5 @@
# Laptop configuration # shellcheck shell=bash
# vim: set ft=bash :
# >>> mamba initialize >>> # >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !! # !! Contents within this block are managed by 'mamba init' !!

View File

@ -1,4 +1,6 @@
# shellcheck shell=bash
# vim: set ft=bash : # vim: set ft=bash :
get_branch_name() { get_branch_name() {
git symbolic-ref --quiet --short HEAD 2>/dev/null \ git symbolic-ref --quiet --short HEAD 2>/dev/null \
|| git rev-parse --short HEAD 2>/dev/null \ || git rev-parse --short HEAD 2>/dev/null \