# spaceusage arg1 arg2 arg3...
# $1 $2 $3 ...

# return the space usage with du
spaceusage() {
  du -hs ${1:-.}/* ${1:-.}/.[!.]* | sort -h
}

me() {
  echo $(id -un):$(id -gn)@$(hostname -s)
}

ff() {
  word=${1:?search word is missing} 
  find . -iname "*$word*"
}

# append PATH
appendPATH() {
  local dpath=${1:?directory is missing} && \
  [[ -d $dpath && ! $PATH =~ $dpath ]] && export PATH+=:$dpath
}
