Some aliases
This commit is contained in:
parent
ec7266334e
commit
d81cf5bb1e
|
@ -123,6 +123,9 @@ dl-source() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
receive-subvolume() { nc -c -l -p $2 | btrfs receive -ve $1 }
|
||||||
|
send-subvolume() { btrfs property set $1 ro true; btrfs send -v $1 | pv | nc -c nashorn.fritz.box $2 }
|
||||||
|
|
||||||
#}}}
|
#}}}
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
@ -166,7 +169,7 @@ suffix() {
|
||||||
alias exifcopy="exiftool -tagsFromFile"
|
alias exifcopy="exiftool -tagsFromFile"
|
||||||
photobydate() {
|
photobydate() {
|
||||||
revolver start
|
revolver start
|
||||||
for i in ${*:-(#i)*.(JPG|CR[23]|DNG)}; do
|
for i in ${*:-(#i)*.(JPG|CR[23]|DNG)(N)}; do
|
||||||
if [[ -e $i ]]; then
|
if [[ -e $i ]]; then
|
||||||
revolver update $i
|
revolver update $i
|
||||||
dir=$(exiftool -p '$DateTimeOriginal' $i | tr ':' '-' | cut -d' ' -f1;)
|
dir=$(exiftool -p '$DateTimeOriginal' $i | tr ':' '-' | cut -d' ' -f1;)
|
||||||
|
@ -294,4 +297,8 @@ tmpssh() {
|
||||||
sshfs $1 ${dir}
|
sshfs $1 ${dir}
|
||||||
cd ${dir}
|
cd ${dir}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias jdl="docopen $HOME/.jails/*/Downloads"
|
||||||
|
alias vcat="nvimpager -c"
|
||||||
|
|
||||||
# vim: foldmethod=marker
|
# vim: foldmethod=marker
|
||||||
|
|
12
aliases/void
12
aliases/void
|
@ -31,10 +31,14 @@ xqn() {
|
||||||
alias xfiles="xbps-query -f"
|
alias xfiles="xbps-query -f"
|
||||||
|
|
||||||
xupdate() {
|
xupdate() {
|
||||||
sudo xbps-install -Su
|
if [[ -z "$@" ]]; then
|
||||||
if [[ $? == 16 ]]; then
|
sudo xbps-install -Su
|
||||||
sudo xbps-install -Syu xbps
|
if [[ $? == 16 ]]; then
|
||||||
xupdate
|
sudo xbps-install -Syu xbps
|
||||||
|
xupdate
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
sudo xbps-install -SA "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue