Skip to content

Commit

Permalink
feat: set up the bat theme
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Jun 10, 2024
1 parent 4687d0f commit 9525eb6
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 2 deletions.
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

# Print a step description
TOTAL_STEPS=9
TOTAL_STEPS=10
STEP=1
function step_msg {
printf "\033[36;1m[%s/%s] %s...\033[0m\n" "$STEP" "$TOTAL_STEPS" "$1";
Expand Down Expand Up @@ -95,6 +95,12 @@ step_msg "Setting up the zsh as default shell"
echo "$(brew --prefix)/bin/zsh" | sudo tee -a /etc/shells >/dev/null
sudo chsh -s "$(brew --prefix)/bin/zsh" "$USER"

# -- Set up the bat theme ------------------------------------------------------
step_msg "Setting up the bat theme"
mkdir -p "$(bat --config-dir)/themes"
cd "$(bat --config-dir)/themes" && curl --remote-name-all https://raw.githubusercontent.com/rose-pine/tm-theme/main/dist/themes/rose-pine{,-dawn,-moon}.tmTheme >/dev/null
bat cache --build

# -- Git -----------------------------------------------------------------------
step_msg "Configuring Git"
git config --global user.email "$GIT_EMAIL"
Expand Down
259 changes: 259 additions & 0 deletions iterm/rose-pine-moon.itermcolors
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.3215686274509804</real>
<key>Green Component</key>
<real>0.20784313725490197</real>
<key>Red Component</key>
<real>0.2235294117647059</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.5725490196078431</real>
<key>Green Component</key>
<real>0.43529411764705883</real>
<key>Red Component</key>
<real>0.9215686274509803</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.8470588235294118</real>
<key>Green Component</key>
<real>0.8117647058823529</real>
<key>Red Component</key>
<real>0.611764705882353</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.4666666666666667</real>
<key>Green Component</key>
<real>0.7568627450980392</real>
<key>Red Component</key>
<real>0.9647058823529412</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.6901960784313725</real>
<key>Green Component</key>
<real>0.5607843137254902</real>
<key>Red Component</key>
<real>0.24313725490196078</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9058823529411765</real>
<key>Green Component</key>
<real>0.6549019607843137</real>
<key>Red Component</key>
<real>0.7686274509803922</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.592156862745098</real>
<key>Green Component</key>
<real>0.6039215686274509</real>
<key>Red Component</key>
<real>0.9176470588235294</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9568627450980393</real>
<key>Green Component</key>
<real>0.8705882352941177</real>
<key>Red Component</key>
<real>0.8784313725490196</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.8470588235294118</real>
<key>Green Component</key>
<real>0.8117647058823529</real>
<key>Red Component</key>
<real>0.611764705882353</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.4666666666666667</real>
<key>Green Component</key>
<real>0.7568627450980392</real>
<key>Red Component</key>
<real>0.9647058823529412</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.6901960784313725</real>
<key>Green Component</key>
<real>0.5607843137254902</real>
<key>Red Component</key>
<real>0.24313725490196078</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9058823529411765</real>
<key>Green Component</key>
<real>0.6549019607843137</real>
<key>Red Component</key>
<real>0.7686274509803922</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.592156862745098</real>
<key>Green Component</key>
<real>0.6039215686274509</real>
<key>Red Component</key>
<real>0.9176470588235294</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9568627450980393</real>
<key>Green Component</key>
<real>0.8705882352941177</real>
<key>Red Component</key>
<real>0.8784313725490196</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.5254901960784314</real>
<key>Green Component</key>
<real>0.41568627450980394</real>
<key>Red Component</key>
<real>0.43137254901960786</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.5725490196078431</real>
<key>Green Component</key>
<real>0.43529411764705883</real>
<key>Red Component</key>
<real>0.9215686274509803</real>
</dict>
<key>Background Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.21176470588235294</real>
<key>Green Component</key>
<real>0.12941176470588237</real>
<key>Red Component</key>
<real>0.13725490196078433</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9568627450980393</real>
<key>Green Component</key>
<real>0.8705882352941177</real>
<key>Red Component</key>
<real>0.8784313725490196</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9568627450980393</real>
<key>Green Component</key>
<real>0.8705882352941177</real>
<key>Red Component</key>
<real>0.8784313725490196</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.21176470588235294</real>
<key>Green Component</key>
<real>0.12941176470588237</real>
<key>Red Component</key>
<real>0.13725490196078433</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9568627450980393</real>
<key>Green Component</key>
<real>0.8705882352941177</real>
<key>Red Component</key>
<real>0.8784313725490196</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.9568627450980393</real>
<key>Green Component</key>
<real>0.8705882352941177</real>
<key>Red Component</key>
<real>0.8784313725490196</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.21176470588235294</real>
<key>Green Component</key>
<real>0.12941176470588237</real>
<key>Red Component</key>
<real>0.13725490196078433</real>
</dict>
</dict>
</plist>
4 changes: 3 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

### Bat (better cat)
export BAT_THEME=tokyonight_moon
export BAT_THEME=rose-pine-moon

### fzf configuration
eval "$(fzf --zsh)"
Expand Down Expand Up @@ -200,3 +200,5 @@ alias dotfiles="code ~/.dotfiles"

### Zoxide (better cd)
alias cd="z"

alias cat="bat"

0 comments on commit 9525eb6

Please sign in to comment.