projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbcbf31
)
zshrc: do not alias 'mdstat' when /proc/mdstat doesn't exist
author
Nicolas Braud-Santoni
<nicolas@braud-santoni.eu>
Wed, 24 Feb 2016 14:15:18 +0000
(15:15 +0100)
committer
Nicolas Braud-Santoni
<nicolas@braud-santoni.eu>
Thu, 3 Nov 2016 13:12:42 +0000
(14:12 +0100)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
1376e4e
..
775293d
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-2542,7
+2542,10
@@
else
alias l='command ls -l'
fi
-alias mdstat='cat /proc/mdstat'
+if [[ -r /proc/mdstat ]]; then
+ alias mdstat='cat /proc/mdstat'
+fi
+
alias ...='cd ../../'
# generate alias named "$KERNELVERSION-reboot" so you can use boot with kexec: