D1804.bashrc (297B)
1 # bashrc 2 3 HISTFILE=A 4 source out/ble.sh 5 blehook ADDHISTORY=myfunction 6 function myfunction { [[ $1 != ' '* ]]; } 7 #function myfunction { false; } 8 #function myfunction { echo "[$1,$command](${FUNCNAME[*]})"; } 9 function myfunction { 10 if [[ $1 == ' '* ]]; then 11 history -s "#$1" 12 return 1 13 fi 14 }