From 24b007ed665e6f78f3969c0d030ca65026efa11f Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 6 Jun 2025 08:07:46 +0200 Subject: [PATCH] feat(bash): add alias to ssh into a local machine in debug mode (#24) Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/24 --- .bash_aliases | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index f457fd2..a1d0903 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -45,6 +45,14 @@ cdll () { cp -P -- "$1" && ll } +# SSH to machine in debug mode at local.vlw.se +sshl () { + # Set login name from first argument or default to current user + local user="${1:-$(whoami)}" + + ssh -p 2222 "$user"@local.vlw.se +} + # Create standard git WIP commit with timestamps alias gitw="git commit -m \"wip: $(date +%Y-%m-%dT%H:%M:%S%z) ($(date +%s))\"" # Create a git WIP tag with the current timestamp. Prompt user for tag comment.