run_ranger () { echo; ranger < $TTY; zle redisplay } zle -N run_ranger bindkey '^f' run_ranger