Add 'shellcheck=bash' and editor hints to bash config/aliases
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
# shellcheck shell=bash
|
||||||
# vim: set ft=bash :
|
# vim: set ft=bash :
|
||||||
|
|
||||||
# Alias aliases
|
# Alias aliases
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# shellcheck shell=bash
|
||||||
# vim: set ft=bash :
|
# vim: set ft=bash :
|
||||||
|
|
||||||
reboot-to-windows ()
|
reboot-to-windows ()
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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' !!
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user