#!/usr/bin/env zsh ############################################################################## # vim:set ft=zsh ai et sw=4 ts=4: # # @author : Jeffrey Serio # @file : functions.zsh # @load_order : post-zshrc ## Do an ls after cd cd() { builtin cd "$@" && ls; } ## Create new directory and enter it mkd() { mkdir -p "$@" && cd "$_"; } ## pids pids() { pgrep -a "$@"; } ## variation of our manzsh() function; pick you poison: manzsh() { /usr/bin/man zshall | most +/"$1" ; } ## restart zsh restart () { exec $SHELL $SHELL_ARGS "$@" } rsrc() { cd && clear && restart; } ## parse HackerNews feed (https://hnrss.org/newest) hn() { python3 <(cat <