Skip to content

Instantly share code, notes, and snippets.

View roziscoding's full-sized avatar
🏳️‍🌈

Roz roziscoding

🏳️‍🌈
View GitHub Profile
@roziscoding
roziscoding / .preview
Last active July 3, 2023 13:54
WSL/ubuntu dotfiles
#! /usr/bin/env zsh
realpath=${1:-$2}
batcommand=$(if type batcat > /dev/null; then echo 'batcat'; else echo 'bat'; fi)
if [[ ! -r $realpath ]]; then
where $realpath;
elif [[ -d $realpath ]]; then
exa -1 -lah --git --icons --color=always --octal-permissions --no-time --no-permissions --group-directories-first -s name $realpath;
elif [[ $realpath:t:e = "png" || $realpath:t:e = "jpg" ]]; then