zsh:alias,functions: Add lowres, crypt-{,u}mount

This commit is contained in:
2020-10-26 13:46:25 +01:00
parent ca7e82ae64
commit d1869afff6
2 changed files with 28 additions and 0 deletions

View File

@@ -86,6 +86,10 @@
alias listopts='printf "%s %s\n" "${(kv)options[@]}"'
# Launch program independent and detached from shell.
alias launch='() { ${aliases[$1]:-$1} "${@[2,-1]}" &>/dev/null &| }'
# Launch program after reducing the screen resolution.
alias lowres='() {
xrandr -s 1920x1080; $1 "${@[2,-1]}"; xrandr -s 3200x1800
}'
# Create copy with .bkp extension
alias bkp='() { for f; do command cp -i "$f"{,.bkp}; done }'
# Reverse bkp()