Download:
child 144:43ad77e3012e
parent 142:0c326ee38ba2
143:49c7e43903f9
Anton Shestakov <av6@dwimlabs.net>, Wed, 08 Feb 2017 01:02:27 +0800
.bashrc: write out a proper if-else-fi block instead of x && y || z

1 файлов изменено, 5 вставок(+), 1 удалений(-) [+]
.bashrc file | annotate | diff | comparison | revisions
--- a/.bashrc Thu Dec 22 13:44:17 2016 +0800
+++ b/.bashrc Wed Feb 08 01:02:27 2017 +0800
@@ -27,7 +27,11 @@
[ -x /usr/bin/keychain ] && eval "$(keychain --eval --quiet)"
if [ -x /usr/bin/dircolors ]; then
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+ if [ -r ~/.dircolors ]; then
+ eval "$(dircolors -b ~/.dircolors)"
+ else
+ eval "$(dircolors -b)"
+ fi
fi
[[ $COLORTERM == 'xfce4-terminal' ]] && export TERM=xterm-256color