Browse Source

feat: add theme for bat

Kyle P Davis 2 years ago
parent
commit
6ea5882564
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .profile

+ 3 - 0
.profile

@@ -110,6 +110,9 @@ alias ts-node-print="env-ts-node node-print"
 # color json
 ! command -v json >/dev/null  ||  alias json="json -o inspect"
 
+# color theme setup for bat (not aliased to cat directly because it's a bit slow)
+command -v bat >/dev/null  ||  export BAT_THEME="$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo 'Visual Studio Dark+' || echo GitHub)"
+
 # MacVim shell aliases
 if [ "$OS" = "Darwin" ]; then
 	alias gvim="mvim"