steevehook
3/26/2018 - 1:28 PM

Trim path in ZSH

Paste this in .zshrc

prompt_dir() {
  prompt_segment blue black "%$(( $COLUMNS - 61 ))<...<%3~%<<"
}