feat(bash): add alias to ssh into a local machine in debug mode (#24)

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/24
This commit is contained in:
Victor Westerlund 2025-06-06 08:07:46 +02:00
parent 7c9edd6334
commit 24b007ed66

View file

@ -45,6 +45,14 @@ cdll () {
cp -P -- "$1" && ll 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 # Create standard git WIP commit with timestamps
alias gitw="git commit -m \"wip: $(date +%Y-%m-%dT%H:%M:%S%z) ($(date +%s))\"" 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. # Create a git WIP tag with the current timestamp. Prompt user for tag comment.