diff --git a/config/git.zsh b/config/git.zsh index a720339..d305e37 100644 --- a/config/git.zsh +++ b/config/git.zsh @@ -12,6 +12,7 @@ alias gpl='git pull origin $(git symbolic-ref --short -q HEAD) --ff-only' alias gd='git --no-pager diff' alias gs='git --no-pager status' alias gss='git --no-pager status -s' +alias gsh='git --no-pager show' alias gpt='git push origin --tags' alias glt='git tag -n --sort=taggerdate | tail -n ${1-10}' gat() { git tag -a $1 -m "$2" } diff --git a/lib/file_preview.sh b/lib/file_preview.sh index 96f10b0..efd50f2 100755 --- a/lib/file_preview.sh +++ b/lib/file_preview.sh @@ -9,4 +9,5 @@ elif [ "$category" = image ]; then command -v ueberzug 2&>/dev/null && bash $OMZ/lib/img_preview.sh "$1"|| img2txt "$1" else echo $1 is a $category file + (bat -p --color=always "$1" || cat "$1") 2>/dev/null | head -1000 fi