mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-09-13 19:03:40 +02:00
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:
parent
7c9edd6334
commit
24b007ed66
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue