From 87cec89722d32a5f126c9976ffc3fccc6728b30a Mon Sep 17 00:00:00 2001 From: Martinez Date: Sun, 27 Dec 2015 16:07:26 +0100 Subject: [PATCH] render.py: - ignore virtual filesystems dotfiles: - add function cds --- dotfiles/etc/zsh/zshrc | 5 +++++ libexec/render.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/dotfiles/etc/zsh/zshrc b/dotfiles/etc/zsh/zshrc index 1dd3ae7..69e9197 100644 --- a/dotfiles/etc/zsh/zshrc +++ b/dotfiles/etc/zsh/zshrc @@ -79,6 +79,11 @@ wt-list_prefixes() { ls $* $HOME/.local/share/wineprefixes/ } +cds() { + cd /mnt/storage/$USER/$1 +} + + HISTFILE=~/.history # soubor pro ukládání do historie SAVEHIST=5000 # ukládá se 5000 příkazů HISTSIZE=5000 # :) diff --git a/libexec/render.py b/libexec/render.py index d3c91c1..bc4efb9 100755 --- a/libexec/render.py +++ b/libexec/render.py @@ -509,6 +509,10 @@ class StatsPart(Part): stor_total = stat.f_blocks * stat.f_bsize stor_free = stat.f_bavail * stat.f_bsize + # ignore virtual filesystems + if stor_total == 0: + continue + if first_mountpoint: self.fragments.append(" |") first_mountpoint = False