aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/bashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/bashrc b/conf/bashrc
index cf0a874..87f34d7 100644
--- a/conf/bashrc
+++ b/conf/bashrc
@@ -70,6 +70,7 @@ alias usee='vim ~/perso/USEFULL_COMMANDS'
alias xbindkeys-reload="pkill xbindkeys; xbindkeys"
alias tn='tmux new-session -s'
alias ta='tmux attach'
+function now() { while read line; do echo -ne "`date ${1:++"$1"}` $line\n"; done }
function htod() { echo "ibase=16; $1" | bc; }
function dtoh() { echo "obase=16; $1" | bc; }