소스 검색

less history to improve listing speed

Serghey Rodin 13 년 전
부모
커밋
c9dca4e2cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      func/main.sh

+ 1 - 1
func/main.sh

@@ -64,7 +64,7 @@ log_history() {
 
     touch $log
     if [ '99' -lt "$(wc -l $log |cut -f 1 -d ' ')" ]; then
-        tail -n 99 $log > $log.moved
+        tail -n 49 $log > $log.moved
         mv -f $log.moved $log
         chmod 660 $log
     fi