function history-stat() {
history | awk '{print $2}' | sort | uniq -c | sort -rn | head
}
function mkdcd() {
mkdir -p "$1"
cd "$1"
function cdll() {
if [[ -n "$1" ]]; then
builtin cd "$1"
ls -lFhA
else
fi
function pushdll() {
builtin pushd "$1"
function popdll() {
builtin popd
function gown() {
sudo chown -R "${USER}" "${1:-.}"
function reload() {
local zshrc="$HOME/.zshrc"
zshrc="$1"
source "$zshrc"
function calc() {
echo "scale=4; $@" | bc -l
function pmine() {
ps "$@" -u "$USER" -o pid,%cpu,%mem,command
function findexec() {
find . -type f -iname "*${1:-}*" -exec "${2:-file}" {} \;
function httpserve() {
python -m SimpleHTTPServer "$@"