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

This commit is contained in:
Victor Westerlund 2025-06-06 08:05:54 +02:00
parent 7c9edd6334
commit 5cd49e82af
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -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.