From cf9b50a2e7949f6be7ecb1b45cc40e2ab3cd7098 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sat, 10 Sep 2016 13:30:45 -0700 Subject: [PATCH] Fix tat session name cleaning --- runcoms/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runcoms/zshrc b/runcoms/zshrc index 1166996..c5e8602 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -22,7 +22,7 @@ bindkey "\ep" history-beginning-search-backward bindkey "\en" history-beginning-search-forward alias be='bundle exec' -alias tat='tmux new-session -As `basename $PWD | sed s/\\\./_/g`' +alias tat='tmux new-session -As `basename $PWD | ruby -e "puts ARGF.read.strip.downcase.gsub(/[^\w]+/, ?-)"`' alias plz='sudo' function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; }