# be paranoid alias rm='rm -i' alias grep="ugrep --exclude-dir=node-modules --exclude-dir=_build" alias e="$EDITOR" alias g="git" alias grep="ugrep" alias tldr="NO_COLOR=1 tldr" alias dedoc="dedoc --color off" alias doc="dedoc --color off search" alias kill-sessions="tmux kill-session -a" alias restart-wifi="doas /usr/sbin/service netif restart" alias de='. ./.envrc' alias logdate='date +"%Y-%m-%d"' alias snapshothome='doas zfs snapshot zroot/home@$(logdate)' alias commit-all="git add . && git commit -m '.' && git push" optimizeimg() { magick -strip -quality 85% $1 $2 } killunattached() { tmux list-sessions -F '#{session_attached} #{session_id}' | \ awk '/^0/{print $2}' | \ xargs -n 1 tmux kill-session -t } refs() { recsel -q $1 ~/personal-db/refs.rec } cleartrail() { cat $1 | tr -d '\n' } addref() { $EDITOR /tmp/description cat /tmp/description | xargs -I {} recins refs.rec -f Title -v $1 -f Tags -v $2 -f Text -v {} } notes() { grep -i "$1" --format='%f%~' ~/notes/ | xargs -I {} cat {} } . /home/mccd/.nix-profile/etc/profile.d/nix.sh alias a='pwd' eval "$(zoxide init posix --hook prompt)" if [ "$(tty)" = "/dev/tty1" ]; then exec startx fi