浏览代码

tm is now a function that ignores program output

Taddeus Kroes 11 年之前
父节点
当前提交
7ce90bdb19
共有 1 个文件被更改,包括 4 次插入 和 1 次删除
  1. 4 1
      bashrc

+ 4 - 1
bashrc

@@ -89,7 +89,10 @@ alias mvv='mosh mv -p 8215 -- screen -Uxr'
 alias cdhere='cd $(realpath $(pwd))'
 alias ocaml='rlwrap ocaml'
 alias c='xclip -i -selection clipboard'
-alias tm='`which time` -f "real: %e"'
+
+function tm () {
+    `which time` -f %e $* > /dev/null
+}
 
 # Add an "alert" alias for long running commands.  Use like so:
 #   sleep 10; alert