From 2bb9eb9f97c7820f0791c59344549c62daf66b7e Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 28 Jun 2014 08:03:28 +0300 Subject: [PATCH] bashrc & zshrc: add tmuxeattach. Closes #34 . tmux emergency attach. I didn't think of any better name. --- bashrc | 3 +++ zshrc | 3 +++ 2 files changed, 6 insertions(+) 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