add some function and faciltie

extract
add .inputrc to easyly search throught history