-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases.zsh
44 lines (40 loc) · 1.39 KB
/
.aliases.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# General aliases.
alias autorestic="autorestic -c ~/.config/autorestic.yaml"
alias c.="codium ."
alias cat="bat"
alias code="codium"
alias dust="dust -bs"
alias find="fd"
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 o="xdg-open"
alias pc="podman-compose"
alias t="task"
alias trash="gio trash"
alias v="vagrant"
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"