summary refs log tree commit diff
path: root/bashrc
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-11-30 15:57:56 -0800
committerFranck Cuny <franck.cuny@gmail.com>2016-11-30 15:57:56 -0800
commitdc96452079b75b2b6cc238ea567ec29729d3d277 (patch)
tree0781f465524761a2183afd67f1ee4b56398d9b80 /bashrc
parent[bash] Put current directory between square bracket. (diff)
downloademacs.d-dc96452079b75b2b6cc238ea567ec29729d3d277.tar.gz
[bash] Add alias for tmux.
Attach to the current session, and if none exists, create a new one.
Diffstat (limited to '')
-rwxr-xr-xbashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 7ce71e9..aeaa580 100755
--- a/bashrc
+++ b/bashrc
@@ -30,6 +30,7 @@ alias aud="aurora_admin"
 alias g="git"
 alias gonest="ssh nest"
 alias t="time"
+alias tm="tmux attach 2>/dev/null || tmux new"
 
 # finally, build the path and source a few files
 __add_to_path_if_exists() {