1
Fork 0
dotfiles/.aliases.zsh

42 lines
1.3 KiB
Bash

# General aliases.
alias c.="codium ."
alias cat="bat"
alias dust="dust -bs"
alias handbrake="HandBrakeCLI --preset-import-file $BAUKE_DIR/data/handbrake-presets.json"
alias handbrake720p30fps="handbrake -Z '720p 30FPS'"
alias hex="hexyl"
alias icat="kitty +kitten icat"
alias list-installed-crates="cargo install --list | rg --color never -o '^[^ ]+'"
alias ls="exa"
alias mgs="mgitstatus"
alias mpv-audio="mpv --no-video"
alias o="xdg-open"
alias tar-extract="tar -x -f"
alias tar-list="tar -t -f"
alias trash="gio trash"
alias weather="wthrr"
alias yt-dlp-audio="yt-dlp -x --ignore-config"
# Git aliases.
alias dotfiles="GIT_DIR=$HOME/.dotfiles GIT_WORK_TREE=$HOME"
alias gap="git add --patch"
alias gd="git diff"
alias gdc="git diff --cached"
alias gl="git log"
alias gls="git log --all --decorate --oneline --graph"
alias gp="simple-git-push"
alias gr="git remote"
alias grv="git remote -v"
alias gs="git status"
# Clipboard aliases.
alias clipboard-to-file="xclip -sel clip -o > $1"
alias file-to-clipboard="xclip -sel clip -i $1"
alias gpg-decrypt-clipboard="xclip -sel clip -o | gpg --decrypt"
# Video aliases.
alias get-resolution="ffprobe -v error -select_streams v -show_entries stream=width,height -of csv=p=0:s=x"
# See '$BAUKE_DIR/Restic Backups.md' for information.
alias restic-b2="source $BAUKE_DIR/data/restic-b2-credentials.zsh && restic"