render.py:
- ignore virtual filesystems dotfiles: - add function cds
This commit is contained in:
parent
8f9197aaa3
commit
87cec89722
2 changed files with 9 additions and 0 deletions
|
@ -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 # :)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue