zsh: Remove unused aliases
This commit is contained in:
parent
285621ad67
commit
5bebfbcbde
1 changed files with 0 additions and 42 deletions
42
zsh/aliases
42
zsh/aliases
|
|
@ -1,13 +1,10 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
alias startx='ssh-agent startx; vlock'
|
|
||||||
|
|
||||||
alias l='ls'
|
alias l='ls'
|
||||||
alias la='ls -A'
|
alias la='ls -A'
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
|
|
||||||
alias units='units --verbose'
|
alias units='units --verbose'
|
||||||
alias trr='transmission-remote'
|
|
||||||
alias g='git'
|
alias g='git'
|
||||||
alias rg='rg -S'
|
alias rg='rg -S'
|
||||||
alias sg='ast-grep'
|
alias sg='ast-grep'
|
||||||
|
|
@ -46,45 +43,6 @@ fe() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
qrencode() {
|
|
||||||
if [ "$#" -gt 0 ]; then
|
|
||||||
printf "$*" | curl -F=\<- qrenco.de
|
|
||||||
else
|
|
||||||
curl -F=\<- qrenco.de
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
wttr() {
|
|
||||||
local request="wttr.in/$1"
|
|
||||||
# Narrow output for narrow terminals
|
|
||||||
[ "$(tput cols)" -lt 125 ] && request+='?n'
|
|
||||||
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
|
||||||
}
|
|
||||||
|
|
||||||
mov2gif() {
|
|
||||||
local infile="$1"
|
|
||||||
local outfile=''
|
|
||||||
if [ "$#" -gt 1 ]; then
|
|
||||||
outfile="$2"
|
|
||||||
else
|
|
||||||
outfile="${1%.mov}.gif"
|
|
||||||
fi
|
|
||||||
ffmpeg -i "${infile}" -vf scale=800:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -layers Optimize -loop 0 - "${outfile}"
|
|
||||||
echo "${outfile}"
|
|
||||||
}
|
|
||||||
|
|
||||||
relpath() {
|
relpath() {
|
||||||
realpath --relative-to=. "$1"
|
realpath --relative-to=. "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
img-placeholder() {
|
|
||||||
local size="$1" # WxH
|
|
||||||
local outfile=''
|
|
||||||
if [ "$#" -gt 1 ]; then
|
|
||||||
outfile="$2"
|
|
||||||
else
|
|
||||||
outfile="${size}.png"
|
|
||||||
fi
|
|
||||||
magick -size "${size}" -background lime -gravity Center caption:"${size}" "${outfile}"
|
|
||||||
echo "${outfile}"
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue