From 7081ab837f3d30a70ca5cb8a5e16368db12cc210 Mon Sep 17 00:00:00 2001 From: Maximilian Kroboth Date: Mon, 4 Sep 2017 18:05:21 +0200 Subject: [PATCH] display filesystem information added --- agnoster.zsh-theme | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/agnoster.zsh-theme b/agnoster.zsh-theme index 4eceafdc..1a21b6e0 100644 --- a/agnoster.zsh-theme +++ b/agnoster.zsh-theme @@ -108,6 +108,14 @@ prompt_dir() { prompt_segment blue $PRIMARY_FG ' %~ ' } +# Fs: filesystem on which the current working directory lies +prompt_fs() { + local pwd=`pwd` + local fs=`df -PTh $pwd | awk '{print $2}' | tail -1` + + prompt_segment magenta $PRIMARY_FG " $fs " +} + # Status: # - was there an error # - am I root @@ -139,6 +147,7 @@ prompt_agnoster_main() { prompt_context prompt_virtualenv prompt_dir + prompt_fs prompt_git prompt_end }