From 1047f3bae5c41211b3ee9c6eebeee5509bc56505 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sun, 29 Mar 2026 19:46:49 -0400 Subject: [PATCH] Fix formatting and quoting in .bash_aliases --- bash/.bash_aliases | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 76707db..80ecd40 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2019-2022, 2025 Kris Lamoureux +# SPDX-FileCopyrightText: 2019-2022, 2025-2026 Kris Lamoureux # SPDX-License-Identifier: 0BSD # shellcheck shell=bash @@ -77,20 +77,20 @@ alias 'signhist'='git rebase --exec "git commit -S --amend --no-edit -n"' alias 'signhistnew'='git rebase --exec "git commit -S --amend --date '\''`date -R`'\'' --no-edit -n"' function gd() { - git diff HEAD~$1 + git diff "HEAD~$1" } function rebase() { - git rebase -i HEAD~$1 + git rebase -i "HEAD~$1" } function delcommit() { - git reset --hard HEAD~$1 + git reset --hard "HEAD~$1" } # Docker shortcuts function inspect() { - docker inspect "$1" | less + docker inspect "$1" | less } # Color shift @@ -103,9 +103,11 @@ alias 'socks'='screen -dm ssh -D 1337 -q -C -N' # sshuttle proxy #e.g. alias 'proxyhome'='proxy user hostdomain:22 192.168.1.0/24' function proxy() { - screen -dm sshuttle -v -r $1@$2 -x $2 ${@:2}; screen -r; + screen -dm sshuttle -v -r "$1@$2" -x "$2" "${@:2}" + screen -r } if [ -f ~/.other_aliases ]; then - source ~/.other_aliases + # shellcheck disable=SC1090 + source ~/.other_aliases fi