chore(base16): add Base16 color theme plugins for shell and vim

This commit is contained in:
Stefan Imhoff
2021-12-02 19:50:34 +01:00
parent 59f3e252dd
commit b0129c251c
6 changed files with 27 additions and 0 deletions

1
.base16-shell Submodule

Submodule .base16-shell added at ce8e1e5403

View File

@@ -8,6 +8,7 @@
~/.ack: ack ~/.ack: ack
~/.ag: ag ~/.ag: ag
~/.config/alacritty: alacritty ~/.config/alacritty: alacritty
~/.config/base16-shell: .base16-shell
~/.config/kitty: kitty ~/.config/kitty: kitty
~/.config/nvim: nvim ~/.config/nvim: nvim
~/.config/starship.toml: starship.toml ~/.config/starship.toml: starship.toml

3
.gitmodules vendored
View File

@@ -5,3 +5,6 @@
[submodule ".antigen"] [submodule ".antigen"]
path = .antigen path = .antigen
url = https://github.com/zsh-users/antigen.git url = https://github.com/zsh-users/antigen.git
[submodule ".base16-shell"]
path = .base16-shell
url = https://github.com/chriskempson/base16-shell.git

View File

@@ -197,5 +197,7 @@ endif
call plug#begin(data_dir . '/plugins') call plug#begin(data_dir . '/plugins')
source ~/.config/nvim/plugins/base16-vim.vim
call plug#end() call plug#end()
doautocmd User PlugLoaded doautocmd User PlugLoaded

View File

@@ -0,0 +1,14 @@
" Base16 for Vim
Plug 'chriskempson/base16-vim'
function ActivateColorscheme()
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
endfunction
augroup ActivateColorscheme
autocmd!
autocmd User PlugLoaded call ActivateColorscheme()
augroup END

6
zshrc
View File

@@ -81,6 +81,12 @@ path=(
# Fish shell like syntax highlighting for zsh # Fish shell like syntax highlighting for zsh
source "$(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" source "$(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# Base16 Shell
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"
# *** *** Aliases *** *** # *** *** Aliases *** ***
# *********************** # ***********************