intelligent up/down arrow behavior only for bash