1
Fork 0
dotfiles/.aliases.zsh

41 lines
1.3 KiB
Bash
Raw Normal View History

2023-02-05 10:55:24 +00:00
# General aliases.
2022-05-11 21:27:34 +00:00
alias c.="codium ."
2022-05-15 17:16:05 +00:00
alias cat="bat"
2022-12-11 17:40:06 +00:00
alias dust="dust -bs"
alias handbrake="HandBrakeCLI --preset-import-file $BAUKE_DIR/data/handbrake-presets.json"
alias handbrake720p30fps="handbrake -Z '720p 30FPS'"
2023-03-17 11:26:02 +00:00
alias hex="hexyl"
2022-09-25 13:13:54 +00:00
alias icat="kitty +kitten icat"
alias list-installed-crates="cargo install --list | rg --color never -o '^[^ ]+'"
2022-05-15 17:16:05 +00:00
alias ls="exa"
2022-09-08 12:56:49 +00:00
alias mgs="mgitstatus"
2023-01-22 14:14:32 +00:00
alias mpv-audio="mpv --no-video"
2023-04-18 08:44:16 +00:00
alias o="xdg-open"
alias tar-extract="tar -x -f"
alias tar-list="tar -t -f"
2022-05-11 20:54:31 +00:00
alias trash="gio trash"
alias weather="wthrr"
2022-05-11 20:54:31 +00:00
2023-02-05 10:55:24 +00:00
# Git aliases.
alias dotfiles="GIT_DIR=$HOME/.dotfiles GIT_WORK_TREE=$HOME"
2022-05-11 20:54:31 +00:00
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"
2022-10-01 10:51:53 +00:00
alias gp="simple-git-push"
2022-10-02 14:15:00 +00:00
alias gr="git remote"
alias grv="git remote -v"
2022-05-11 20:54:31 +00:00
alias gs="git status"
2023-02-05 10:55:24 +00:00
# Clipboard aliases.
2022-05-11 20:54:31 +00:00
alias clipboard-to-file="xclip -sel clip -o > $1"
alias file-to-clipboard="xclip -sel clip -i $1"
2022-11-29 22:56:26 +00:00
alias gpg-decrypt-clipboard="xclip -sel clip -o | gpg --decrypt"
2022-10-29 19:46:36 +00:00
2023-02-27 11:14:09 +00:00
# Video aliases.
alias get-resolution="ffprobe -v error -select_streams v -show_entries stream=width,height -of csv=p=0:s=x"
2023-02-05 10:55:24 +00:00
# See '$BAUKE_DIR/Restic Backups.md' for information.
alias restic-b2="source $BAUKE_DIR/data/restic-b2-credentials.zsh && restic"