diff --git a/bashrc b/bashrc index 03e22863..9a9d0702 100644 --- a/bashrc +++ b/bashrc @@ -535,6 +535,9 @@ alias isodateu='date -u "+%Y-%m-%d %H:%M:%S%z"' # Show information on PEM file. alias peminfo="openssl x509 -text -in" +# tmux emergency attach +alias tmuxeattach="/proc/$(pgrep -o tmux)/exe attach" + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 2071763b..741155a8 100644 --- a/zshrc +++ b/zshrc @@ -504,6 +504,9 @@ alias isodateu='date -u "+%Y-%m-%d %H:%M:%S%z"' # Show information on PEM file. alias peminfo="openssl x509 -text -in" +# tmux emergency attach +alias tmuxeattach="/proc/$(pgrep -o tmux)/exe attach" + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases