# Sample bash initialization file #IMPORTANT NOTE: #make sure that all fsp commands can be found via $PATH #Bugs: fhostcmd doesn't work for me so fhost alias is useless export FSP_PORT="2000" export FSP_HOST="localhost" export FSP_DIR="/" export FSP_TRACE="" export FSP_DELAY="3000" fcommandlist="fcat fdu ffind fls fget fgrab fpro frm frmdir" for x in $fcommandlist do alias $x=$x"cmd" done function fcd() { fcdcmd $1 export FSP_DIR=$(fcdcmd 2>1 $1|grep '^/') } function ftouch() { touch $1 fput $1 rm $1 } function fpwd() { echo "$FSP_HOST $FSP_PORT : $FSP_DIR" } function fless() { fgetcmd $1 less $1 rm $1 } function fmore() { fgetcmd $1 more $1 rm $1 }