Here is my PS1:
export PS1='\u@\h:\w\$ '
Which looks like this:
user@ubuntu:~/ $
I have bound Alt+{Left,Right} Arrow to command that change the current working directory:
bind -x '"\e[1;3D":pushd . > /dev/null && cd ..'
bind -x '"\e[1;3C":popd > /dev/null'
This works, but the current working directory in PS1 is not evaluated since no carriage return is entered. Is there a way to force bash to reevaluate PS1 in line?