mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(base16): add Base16 color theme plugins for shell and vim
This commit is contained in:
1
.base16-shell
Submodule
1
.base16-shell
Submodule
Submodule .base16-shell added at ce8e1e5403
@@ -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
3
.gitmodules
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
14
nvim/plugins/base16-vim.vim
Normal file
14
nvim/plugins/base16-vim.vim
Normal 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
6
zshrc
@@ -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 *** ***
|
||||||
# ***********************
|
# ***********************
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user