dotfiles/bash/.bash_functions

10 lines
179 B
Bash

# Kill process by port
killport () { lsof -ti ":$1" | xargs kill -9; }
# Rename tmux window after ssh session
ssh() {
tmux rename-window "$*"
command ssh "$@"
exit
}