1
0
Prechádzať zdrojové kódy

tm is now a function that ignores program output

Taddeus Kroes 11 rokov pred
rodič
commit
7ce90bdb19
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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 cdhere='cd $(realpath $(pwd))'
 alias ocaml='rlwrap ocaml'
 alias ocaml='rlwrap ocaml'
 alias c='xclip -i -selection clipboard'
 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:
 # Add an "alert" alias for long running commands.  Use like so:
 #   sleep 10; alert
 #   sleep 10; alert