view zsh/zsh_hooks.zsh @ 199:b4999d36b3d2

Remove autosuggestions in zsh
author zegervdv <zegervdv@me.com>
date Wed, 19 Nov 2014 08:22:09 +0100
parents 87498dbd779a
children
line wrap: on
line source

function precmd {
  # vcs_info
  # Put the string "hostname::/full/directory/path" in the title bar:
  echo -ne "\e]2;$PWD\a"

  # Put the parentdir/currentdir in the tab
  echo -ne "\e]1;$PWD:h:t/$PWD:t\a"
}

function set_running_app {
  printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"
}

function preexec {
  set_running_app
}

function postexec {
  set_running_app
}