Browse Source

Made sure that it goes to the correct dir

Samuel W. Flint 8 years ago
parent
commit
0e8f316993
1 changed files with 3 additions and 0 deletions
  1. 3 0
      script-session

+ 3 - 0
script-session

@@ -4,6 +4,7 @@ date=(`date +%F`)
 subject=(`echo $1 | sed -e "s/ /-/g"`)
 filename=~/sessions/${date}-${subject}.sessionscript
 timingfile=~/sessions/${date}-${subject}.timing
+currentdir=`pwd`
 
 #echo Recording session $1 as $filename
 
@@ -18,3 +19,5 @@ script -f $filename
 cd ~/sessions
 git add ${date}-${subject}.sessionscript ${date}-${subject}.timing
 git commit
+
+cd ${currentdir}