bashrc & zshrc: add tmuxeattach. Closes #34 .

tmux emergency attach. I didn't think of any better name.
This commit is contained in:
Mikaela Suomalainen 2014-06-28 08:03:28 +03:00
parent 72f384701e
commit 2bb9eb9f97
2 changed files with 6 additions and 0 deletions

3
bashrc
View File

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

3
zshrc
View File

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