From 393e0ded8a62d884c9acaa04cad49232ef529c39 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 6 Feb 2013 11:48:35 +0900 Subject: [PATCH] update scr --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 9c75b13..72f2235 100755 --- a/bashrc +++ b/bashrc @@ -294,8 +294,9 @@ man(){ } scr(){ + test -n "$1" && pf="${1}-" local _tformat="%Y%m%d-%H%M%S%z" - local _file="${HOME}/`date +${_tformat}`.script" + local _file="${HOME}/${pf}`date +${_tformat}`.script" SCRIPT=${_file} script ${_file} "$@" }