Minor fixes

master
Pierre Neidhardt 2014-01-04 17:56:06 +01:00
parent f70d5b846d
commit e32bc824ca
2 changed files with 3 additions and 2 deletions

View File

@ -191,7 +191,7 @@ bindatasearch()
return
fi
if [ $(du -b Cover.jpg | awk '{print $1}') -gt 1048576 ]; then
if [ $(wc -c Cover.jpg | cut -f1 -d' ') -gt 1048576 ]; then
echo "[$1] file size must not exceed 1MB."
return
fi

3
.zshrc
View File

@ -2,7 +2,8 @@
## Shell Config -- Master File
################################################################################
readonly SHELL_CURRENT="$(ps -o command="" $$)"
## Note that 'ps -o command= $$' gives the same result with parameters.
readonly SHELL_CURRENT="$(ps -o comm= $$)"
readonly SHELL_DIR="$HOME/.shell.d"
## .profile is sourced automatically by most login managers, but we need to