Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sambarrowclough/ace8234b73773b4250e9f48288dd42be to your computer and use it in GitHub Desktop.
Save sambarrowclough/ace8234b73773b4250e9f48288dd42be to your computer and use it in GitHub Desktop.
zprofile
export PS1="> "
eval "$(/opt/homebrew/bin/brew shellenv)"
# Z integration
[ -f ~/z.sh ] && source ~/z.sh
unalias z 2>/dev/null
z() {
[ $# -gt 0 ] && _z "$*" && return
cd "$(_z -l 2>&1 | fzf --height 40% --nth 2.. --reverse --inline-info +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')"
}
dl() {
yt-dlp -i --extract-audio --audio-format mp3 --audio-quality 0 "$@"
}
split(){
python3 -m demucs.separate -n htdemucs_ft --mp3 --mp3-bitrate 320 "$1" -o "$2"
}
alias python="python 3"
alias sb="supabase"
alias bb="ssh -A [email protected]"
alias t="pnpm types"
alias g="pnpm generate"
alias m="pnpm migrate"
alias pn="pnpm"
alias o="open"
alias y="yarn"
alias p="pbpaste"
alias c="pbcopy"
alias cl="clear"
alias d="npm run dev"
alias db="pnpm db"
alias i="pnpm install"
alias ..="cd .."
alias r=". ~/.zprofile"
alias zp="vi ~/.zprofile"
alias gs="git status"
alias gp="git push"
alias gb="git branch"
alias stash="git stash --include-untracked"
alias b="pnpm b"
alias f="ffmpeg"
alias stash="git stash --include-untracked"
alias b="npm run build"
alias profile="vi ~/.zprofile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment