Browse Source

update scr

pull/1/head
10sr 11 years ago
parent
commit
393e0ded8a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc View File

@@ -294,8 +294,9 @@ man(){
} }


scr(){ scr(){
test -n "$1" && pf="${1}-"
local _tformat="%Y%m%d-%H%M%S%z" 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} "$@" SCRIPT=${_file} script ${_file} "$@"
} }




Loading…
Cancel
Save