From a8684bb85ebc6df014bbe2829f2edfbe86b28e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 13 Nov 2016 19:02:36 +0100 Subject: [PATCH] Fix prompt to have just the last dir name in path --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index a12addc8..936eafa4 100644 --- a/.zshrc +++ b/.zshrc @@ -26,6 +26,11 @@ bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'j' history-substring-search-down bindkey "^R" history-incremental-search-backward + +prompt_dir() { + prompt_segment blue $PRIMARY_FG ' %1~ ' +} + # aliases if [[ `uname` == 'Darwin' ]]; then alias vim=/usr/local/Cellar/vim/7.4/bin/vim