# 2021-02-14 - quickly view pictures
if [ -x "$(command -v feh)" ]; then
    alias fehview='feh -.xy'
fi

# 2024-12-21 - File systems such as btrfs, ZFS, and XFS all support reflink to spead up copying.
# If reflinks are unsupported by the file system, we will fall back automatically to a traditional copy.
# 2025-04-21 - Using `--reflink=always` is too aggressive and removes the "fall back" part, `--reflink=auto`
# does the "fall back" which is needed for stuff like sshfs or other cross-filesystem copies.
alias cp='cp --reflink=auto'

# 2026-01-12 - Use hardware acceleration by default, add a shortcut to loop files (useful for gifs).
if [ -x "$(command -v mpv)" ]; then
    alias mpv='mpv --hwdec=auto'
    alias mpvl='mpv --loop-file='
fi

