#!/usr/bin/env zsh alias l='ls' alias la='ls -A' alias ll='ls -l' alias units='units --verbose' alias g='git' alias rg='rg -S' alias sg='ast-grep' alias timestamp='now' # I have never actually meant to start Ghostscript, but I'm sure that I'll want # to be able to someday. alias gs='git status' alias ghostscript="command gs" alias tf='terraform' alias see='pee "cat >&2"' alias psql-ro='PSQLRC=~/.psqlrc-readonly psql' docker-ip() { docker inspect "$1" --format='{{.NetworkSettings.Networks.bridge.IPAddress}}' } alias shrug='echo -n "¯\\_(ツ)_/¯"' fe() { local files IFS=$'\n' files=($(fd --type=f --hidden | fzf --bind='tab:toggle+up,shift-tab:toggle+down' --query="$1" --multi --exit-0)) if [[ -n "${files}" ]]; then print -s "${EDITOR:-vim}" "${files[@]}" ${EDITOR:-vim} "${files[@]}" fi } relpath() { realpath --relative-to=. "$1" }