From 1f7f3171ec554d4549853c6cd8b6053553c1c84b Mon Sep 17 00:00:00 2001 From: Adam Daugherty Date: Sat, 30 Mar 2024 13:04:14 -0400 Subject: [PATCH] initial dotfiles, no linking or features yet --- alacritty/alacritty.toml | 56 ++++ alacritty/alacritty.yml.bkup | 11 + fish/colors/base16-gruvbox-dark-hard.fish | 132 ++++++++++ fish/completions/asdf.fish | 1 + fish/completions/fisher.fish | 7 + fish/conf.d/base16.fish | 3 + fish/config.fish | 6 + fish/fish_plugins | 2 + fish/fish_variables | 37 +++ fish/functions/base16-3024.fish | 132 ++++++++++ fish/functions/base16-apathy.fish | 132 ++++++++++ fish/functions/base16-apprentice.fish | 132 ++++++++++ fish/functions/base16-ashes.fish | 132 ++++++++++ fish/functions/base16-atelier-cave-light.fish | 132 ++++++++++ fish/functions/base16-atelier-cave.fish | 132 ++++++++++ fish/functions/base16-atelier-dune-light.fish | 132 ++++++++++ fish/functions/base16-atelier-dune.fish | 132 ++++++++++ .../base16-atelier-estuary-light.fish | 132 ++++++++++ fish/functions/base16-atelier-estuary.fish | 132 ++++++++++ .../base16-atelier-forest-light.fish | 132 ++++++++++ fish/functions/base16-atelier-forest.fish | 132 ++++++++++ .../functions/base16-atelier-heath-light.fish | 132 ++++++++++ fish/functions/base16-atelier-heath.fish | 132 ++++++++++ .../base16-atelier-lakeside-light.fish | 132 ++++++++++ fish/functions/base16-atelier-lakeside.fish | 132 ++++++++++ .../base16-atelier-plateau-light.fish | 132 ++++++++++ fish/functions/base16-atelier-plateau.fish | 132 ++++++++++ .../base16-atelier-savanna-light.fish | 132 ++++++++++ fish/functions/base16-atelier-savanna.fish | 132 ++++++++++ .../base16-atelier-seaside-light.fish | 132 ++++++++++ fish/functions/base16-atelier-seaside.fish | 132 ++++++++++ .../base16-atelier-sulphurpool-light.fish | 132 ++++++++++ .../functions/base16-atelier-sulphurpool.fish | 132 ++++++++++ fish/functions/base16-atlas.fish | 132 ++++++++++ fish/functions/base16-bespin.fish | 132 ++++++++++ .../functions/base16-black-metal-bathory.fish | 132 ++++++++++ fish/functions/base16-black-metal-burzum.fish | 132 ++++++++++ .../base16-black-metal-dark-funeral.fish | 132 ++++++++++ .../base16-black-metal-gorgoroth.fish | 132 ++++++++++ .../base16-black-metal-immortal.fish | 132 ++++++++++ fish/functions/base16-black-metal-khold.fish | 132 ++++++++++ fish/functions/base16-black-metal-marduk.fish | 132 ++++++++++ fish/functions/base16-black-metal-mayhem.fish | 132 ++++++++++ fish/functions/base16-black-metal-nile.fish | 132 ++++++++++ fish/functions/base16-black-metal-venom.fish | 132 ++++++++++ fish/functions/base16-black-metal.fish | 132 ++++++++++ fish/functions/base16-brewer.fish | 132 ++++++++++ fish/functions/base16-bright.fish | 132 ++++++++++ fish/functions/base16-brogrammer.fish | 132 ++++++++++ fish/functions/base16-brushtrees-dark.fish | 132 ++++++++++ fish/functions/base16-brushtrees.fish | 132 ++++++++++ fish/functions/base16-chalk.fish | 132 ++++++++++ fish/functions/base16-circus.fish | 132 ++++++++++ fish/functions/base16-classic-dark.fish | 132 ++++++++++ fish/functions/base16-classic-light.fish | 132 ++++++++++ fish/functions/base16-codeschool.fish | 132 ++++++++++ fish/functions/base16-colors.fish | 132 ++++++++++ fish/functions/base16-cupcake.fish | 132 ++++++++++ fish/functions/base16-cupertino.fish | 132 ++++++++++ fish/functions/base16-danqing.fish | 132 ++++++++++ fish/functions/base16-darcula.fish | 132 ++++++++++ fish/functions/base16-darkmoss.fish | 132 ++++++++++ fish/functions/base16-darktooth.fish | 132 ++++++++++ fish/functions/base16-darkviolet.fish | 132 ++++++++++ fish/functions/base16-decaf.fish | 132 ++++++++++ fish/functions/base16-default-dark.fish | 132 ++++++++++ fish/functions/base16-default-light.fish | 132 ++++++++++ fish/functions/base16-dirtysea.fish | 132 ++++++++++ fish/functions/base16-dracula.fish | 132 ++++++++++ fish/functions/base16-edge-dark.fish | 132 ++++++++++ fish/functions/base16-edge-light.fish | 132 ++++++++++ fish/functions/base16-eighties.fish | 132 ++++++++++ fish/functions/base16-embers.fish | 132 ++++++++++ fish/functions/base16-equilibrium-dark.fish | 132 ++++++++++ .../base16-equilibrium-gray-dark.fish | 132 ++++++++++ .../base16-equilibrium-gray-light.fish | 132 ++++++++++ fish/functions/base16-equilibrium-light.fish | 132 ++++++++++ fish/functions/base16-espresso.fish | 132 ++++++++++ fish/functions/base16-eva-dim.fish | 132 ++++++++++ fish/functions/base16-eva.fish | 132 ++++++++++ fish/functions/base16-flat.fish | 132 ++++++++++ fish/functions/base16-framer.fish | 132 ++++++++++ fish/functions/base16-fruit-soda.fish | 132 ++++++++++ fish/functions/base16-gigavolt.fish | 132 ++++++++++ fish/functions/base16-github.fish | 132 ++++++++++ fish/functions/base16-google-dark.fish | 132 ++++++++++ fish/functions/base16-google-light.fish | 132 ++++++++++ fish/functions/base16-grayscale-dark.fish | 132 ++++++++++ fish/functions/base16-grayscale-light.fish | 132 ++++++++++ fish/functions/base16-greenscreen.fish | 132 ++++++++++ fish/functions/base16-gruvbox-dark-hard.fish | 132 ++++++++++ .../functions/base16-gruvbox-dark-medium.fish | 132 ++++++++++ fish/functions/base16-gruvbox-dark-pale.fish | 132 ++++++++++ fish/functions/base16-gruvbox-dark-soft.fish | 132 ++++++++++ fish/functions/base16-gruvbox-light-hard.fish | 132 ++++++++++ .../base16-gruvbox-light-medium.fish | 132 ++++++++++ fish/functions/base16-gruvbox-light-soft.fish | 132 ++++++++++ fish/functions/base16-hardcore.fish | 132 ++++++++++ fish/functions/base16-harmonic-dark.fish | 132 ++++++++++ fish/functions/base16-harmonic-light.fish | 132 ++++++++++ fish/functions/base16-heetch-light.fish | 132 ++++++++++ fish/functions/base16-heetch.fish | 132 ++++++++++ fish/functions/base16-helios.fish | 132 ++++++++++ fish/functions/base16-hopscotch.fish | 132 ++++++++++ fish/functions/base16-horizon-dark.fish | 132 ++++++++++ fish/functions/base16-horizon-light.fish | 132 ++++++++++ .../base16-horizon-terminal-dark.fish | 132 ++++++++++ .../base16-horizon-terminal-light.fish | 132 ++++++++++ fish/functions/base16-humanoid-dark.fish | 132 ++++++++++ fish/functions/base16-humanoid-light.fish | 132 ++++++++++ fish/functions/base16-ia-dark.fish | 132 ++++++++++ fish/functions/base16-ia-light.fish | 132 ++++++++++ fish/functions/base16-icy.fish | 132 ++++++++++ fish/functions/base16-irblack.fish | 132 ++++++++++ fish/functions/base16-isotope.fish | 132 ++++++++++ fish/functions/base16-kimber.fish | 132 ++++++++++ fish/functions/base16-macintosh.fish | 132 ++++++++++ fish/functions/base16-marrakesh.fish | 132 ++++++++++ fish/functions/base16-materia.fish | 132 ++++++++++ fish/functions/base16-material-darker.fish | 132 ++++++++++ fish/functions/base16-material-lighter.fish | 132 ++++++++++ fish/functions/base16-material-palenight.fish | 132 ++++++++++ fish/functions/base16-material-vivid.fish | 132 ++++++++++ fish/functions/base16-material.fish | 132 ++++++++++ fish/functions/base16-mellow-purple.fish | 132 ++++++++++ fish/functions/base16-mexico-light.fish | 132 ++++++++++ fish/functions/base16-mocha.fish | 132 ++++++++++ fish/functions/base16-monokai.fish | 132 ++++++++++ fish/functions/base16-nebula.fish | 132 ++++++++++ fish/functions/base16-nord.fish | 132 ++++++++++ fish/functions/base16-nova.fish | 132 ++++++++++ fish/functions/base16-ocean.fish | 132 ++++++++++ fish/functions/base16-oceanicnext.fish | 132 ++++++++++ fish/functions/base16-one-light.fish | 132 ++++++++++ fish/functions/base16-onedark.fish | 132 ++++++++++ fish/functions/base16-outrun-dark.fish | 132 ++++++++++ fish/functions/base16-papercolor-dark.fish | 132 ++++++++++ fish/functions/base16-papercolor-light.fish | 132 ++++++++++ fish/functions/base16-paraiso.fish | 132 ++++++++++ fish/functions/base16-pasque.fish | 132 ++++++++++ fish/functions/base16-phd.fish | 132 ++++++++++ fish/functions/base16-pico.fish | 132 ++++++++++ fish/functions/base16-pinky.fish | 132 ++++++++++ fish/functions/base16-pop.fish | 132 ++++++++++ fish/functions/base16-porple.fish | 132 ++++++++++ fish/functions/base16-qualia.fish | 132 ++++++++++ fish/functions/base16-railscasts.fish | 132 ++++++++++ fish/functions/base16-rebecca.fish | 132 ++++++++++ fish/functions/base16-rose-pine-dawn.fish | 132 ++++++++++ fish/functions/base16-rose-pine-moon.fish | 132 ++++++++++ fish/functions/base16-rose-pine.fish | 132 ++++++++++ fish/functions/base16-sagelight.fish | 132 ++++++++++ fish/functions/base16-sakura.fish | 132 ++++++++++ fish/functions/base16-sandcastle.fish | 132 ++++++++++ fish/functions/base16-seti.fish | 132 ++++++++++ fish/functions/base16-shades-of-purple.fish | 132 ++++++++++ fish/functions/base16-shapeshifter.fish | 132 ++++++++++ fish/functions/base16-silk-dark.fish | 132 ++++++++++ fish/functions/base16-silk-light.fish | 132 ++++++++++ fish/functions/base16-snazzy.fish | 132 ++++++++++ fish/functions/base16-solarflare-light.fish | 132 ++++++++++ fish/functions/base16-solarflare.fish | 132 ++++++++++ fish/functions/base16-solarized-dark.fish | 132 ++++++++++ fish/functions/base16-solarized-light.fish | 132 ++++++++++ fish/functions/base16-spacemacs.fish | 132 ++++++++++ fish/functions/base16-summercamp.fish | 132 ++++++++++ fish/functions/base16-summerfruit-dark.fish | 132 ++++++++++ fish/functions/base16-summerfruit-light.fish | 132 ++++++++++ .../functions/base16-synth-midnight-dark.fish | 132 ++++++++++ .../base16-synth-midnight-light.fish | 132 ++++++++++ fish/functions/base16-tango.fish | 132 ++++++++++ fish/functions/base16-tender.fish | 132 ++++++++++ .../base16-tomorrow-night-eighties.fish | 132 ++++++++++ fish/functions/base16-tomorrow-night.fish | 132 ++++++++++ fish/functions/base16-tomorrow.fish | 132 ++++++++++ fish/functions/base16-tube.fish | 132 ++++++++++ fish/functions/base16-twilight.fish | 132 ++++++++++ fish/functions/base16-unikitty-dark.fish | 132 ++++++++++ fish/functions/base16-unikitty-light.fish | 132 ++++++++++ fish/functions/base16-vulcan.fish | 132 ++++++++++ fish/functions/base16-windows-10-light.fish | 132 ++++++++++ fish/functions/base16-windows-10.fish | 132 ++++++++++ fish/functions/base16-windows-95-light.fish | 132 ++++++++++ fish/functions/base16-windows-95.fish | 132 ++++++++++ .../base16-windows-highcontrast-light.fish | 132 ++++++++++ .../base16-windows-highcontrast.fish | 132 ++++++++++ fish/functions/base16-windows-nt-light.fish | 132 ++++++++++ fish/functions/base16-windows-nt.fish | 132 ++++++++++ fish/functions/base16-woodland.fish | 132 ++++++++++ fish/functions/base16-xcode-dusk.fish | 132 ++++++++++ fish/functions/base16-zenburn.fish | 132 ++++++++++ fish/functions/fisher.fish | 240 ++++++++++++++++++ nvim/init.lua | 3 + nvim/lazy-lock.json | 33 +++ nvim/lua/adam/core/keymaps.lua | 23 ++ nvim/lua/adam/core/options.lua | 41 +++ nvim/lua/adam/lazy.lua | 17 ++ nvim/lua/adam/plugins/base16-nvim.lua | 21 ++ nvim/lua/adam/plugins/bufferline.lua | 11 + nvim/lua/adam/plugins/colorscheme.lua | 8 + nvim/lua/adam/plugins/comment.lua | 5 + nvim/lua/adam/plugins/dressing.lua | 4 + nvim/lua/adam/plugins/init.lua | 3 + nvim/lua/adam/plugins/lsp/lspconfig.lua | 106 ++++++++ nvim/lua/adam/plugins/lsp/mason.lua | 34 +++ nvim/lua/adam/plugins/lualine.lua | 71 ++++++ nvim/lua/adam/plugins/neotest.lua | 23 ++ nvim/lua/adam/plugins/nvim-cmp.lua | 51 ++++ nvim/lua/adam/plugins/nvim-tree.lua | 48 ++++ nvim/lua/adam/plugins/nvim-treesitter.lua | 30 +++ nvim/lua/adam/plugins/rust-vim.lua | 7 + nvim/lua/adam/plugins/telescope.lua | 34 +++ nvim/lua/adam/plugins/vim-maximizer.lua | 6 + nvim/lua/adam/plugins/which-key-nvim.lua | 11 + tmux/.tmux.conf | 36 +++ .../colors/base16-gruvbox-dark-hard.conf | 61 +++++ 216 files changed, 25206 insertions(+) create mode 100644 alacritty/alacritty.toml create mode 100644 alacritty/alacritty.yml.bkup create mode 100644 fish/colors/base16-gruvbox-dark-hard.fish create mode 120000 fish/completions/asdf.fish create mode 100644 fish/completions/fisher.fish create mode 100644 fish/conf.d/base16.fish create mode 100644 fish/config.fish create mode 100644 fish/fish_plugins create mode 100644 fish/fish_variables create mode 100644 fish/functions/base16-3024.fish create mode 100644 fish/functions/base16-apathy.fish create mode 100644 fish/functions/base16-apprentice.fish create mode 100644 fish/functions/base16-ashes.fish create mode 100644 fish/functions/base16-atelier-cave-light.fish create mode 100644 fish/functions/base16-atelier-cave.fish create mode 100644 fish/functions/base16-atelier-dune-light.fish create mode 100644 fish/functions/base16-atelier-dune.fish create mode 100644 fish/functions/base16-atelier-estuary-light.fish create mode 100644 fish/functions/base16-atelier-estuary.fish create mode 100644 fish/functions/base16-atelier-forest-light.fish create mode 100644 fish/functions/base16-atelier-forest.fish create mode 100644 fish/functions/base16-atelier-heath-light.fish create mode 100644 fish/functions/base16-atelier-heath.fish create mode 100644 fish/functions/base16-atelier-lakeside-light.fish create mode 100644 fish/functions/base16-atelier-lakeside.fish create mode 100644 fish/functions/base16-atelier-plateau-light.fish create mode 100644 fish/functions/base16-atelier-plateau.fish create mode 100644 fish/functions/base16-atelier-savanna-light.fish create mode 100644 fish/functions/base16-atelier-savanna.fish create mode 100644 fish/functions/base16-atelier-seaside-light.fish create mode 100644 fish/functions/base16-atelier-seaside.fish create mode 100644 fish/functions/base16-atelier-sulphurpool-light.fish create mode 100644 fish/functions/base16-atelier-sulphurpool.fish create mode 100644 fish/functions/base16-atlas.fish create mode 100644 fish/functions/base16-bespin.fish create mode 100644 fish/functions/base16-black-metal-bathory.fish create mode 100644 fish/functions/base16-black-metal-burzum.fish create mode 100644 fish/functions/base16-black-metal-dark-funeral.fish create mode 100644 fish/functions/base16-black-metal-gorgoroth.fish create mode 100644 fish/functions/base16-black-metal-immortal.fish create mode 100644 fish/functions/base16-black-metal-khold.fish create mode 100644 fish/functions/base16-black-metal-marduk.fish create mode 100644 fish/functions/base16-black-metal-mayhem.fish create mode 100644 fish/functions/base16-black-metal-nile.fish create mode 100644 fish/functions/base16-black-metal-venom.fish create mode 100644 fish/functions/base16-black-metal.fish create mode 100644 fish/functions/base16-brewer.fish create mode 100644 fish/functions/base16-bright.fish create mode 100644 fish/functions/base16-brogrammer.fish create mode 100644 fish/functions/base16-brushtrees-dark.fish create mode 100644 fish/functions/base16-brushtrees.fish create mode 100644 fish/functions/base16-chalk.fish create mode 100644 fish/functions/base16-circus.fish create mode 100644 fish/functions/base16-classic-dark.fish create mode 100644 fish/functions/base16-classic-light.fish create mode 100644 fish/functions/base16-codeschool.fish create mode 100644 fish/functions/base16-colors.fish create mode 100644 fish/functions/base16-cupcake.fish create mode 100644 fish/functions/base16-cupertino.fish create mode 100644 fish/functions/base16-danqing.fish create mode 100644 fish/functions/base16-darcula.fish create mode 100644 fish/functions/base16-darkmoss.fish create mode 100644 fish/functions/base16-darktooth.fish create mode 100644 fish/functions/base16-darkviolet.fish create mode 100644 fish/functions/base16-decaf.fish create mode 100644 fish/functions/base16-default-dark.fish create mode 100644 fish/functions/base16-default-light.fish create mode 100644 fish/functions/base16-dirtysea.fish create mode 100644 fish/functions/base16-dracula.fish create mode 100644 fish/functions/base16-edge-dark.fish create mode 100644 fish/functions/base16-edge-light.fish create mode 100644 fish/functions/base16-eighties.fish create mode 100644 fish/functions/base16-embers.fish create mode 100644 fish/functions/base16-equilibrium-dark.fish create mode 100644 fish/functions/base16-equilibrium-gray-dark.fish create mode 100644 fish/functions/base16-equilibrium-gray-light.fish create mode 100644 fish/functions/base16-equilibrium-light.fish create mode 100644 fish/functions/base16-espresso.fish create mode 100644 fish/functions/base16-eva-dim.fish create mode 100644 fish/functions/base16-eva.fish create mode 100644 fish/functions/base16-flat.fish create mode 100644 fish/functions/base16-framer.fish create mode 100644 fish/functions/base16-fruit-soda.fish create mode 100644 fish/functions/base16-gigavolt.fish create mode 100644 fish/functions/base16-github.fish create mode 100644 fish/functions/base16-google-dark.fish create mode 100644 fish/functions/base16-google-light.fish create mode 100644 fish/functions/base16-grayscale-dark.fish create mode 100644 fish/functions/base16-grayscale-light.fish create mode 100644 fish/functions/base16-greenscreen.fish create mode 100644 fish/functions/base16-gruvbox-dark-hard.fish create mode 100644 fish/functions/base16-gruvbox-dark-medium.fish create mode 100644 fish/functions/base16-gruvbox-dark-pale.fish create mode 100644 fish/functions/base16-gruvbox-dark-soft.fish create mode 100644 fish/functions/base16-gruvbox-light-hard.fish create mode 100644 fish/functions/base16-gruvbox-light-medium.fish create mode 100644 fish/functions/base16-gruvbox-light-soft.fish create mode 100644 fish/functions/base16-hardcore.fish create mode 100644 fish/functions/base16-harmonic-dark.fish create mode 100644 fish/functions/base16-harmonic-light.fish create mode 100644 fish/functions/base16-heetch-light.fish create mode 100644 fish/functions/base16-heetch.fish create mode 100644 fish/functions/base16-helios.fish create mode 100644 fish/functions/base16-hopscotch.fish create mode 100644 fish/functions/base16-horizon-dark.fish create mode 100644 fish/functions/base16-horizon-light.fish create mode 100644 fish/functions/base16-horizon-terminal-dark.fish create mode 100644 fish/functions/base16-horizon-terminal-light.fish create mode 100644 fish/functions/base16-humanoid-dark.fish create mode 100644 fish/functions/base16-humanoid-light.fish create mode 100644 fish/functions/base16-ia-dark.fish create mode 100644 fish/functions/base16-ia-light.fish create mode 100644 fish/functions/base16-icy.fish create mode 100644 fish/functions/base16-irblack.fish create mode 100644 fish/functions/base16-isotope.fish create mode 100644 fish/functions/base16-kimber.fish create mode 100644 fish/functions/base16-macintosh.fish create mode 100644 fish/functions/base16-marrakesh.fish create mode 100644 fish/functions/base16-materia.fish create mode 100644 fish/functions/base16-material-darker.fish create mode 100644 fish/functions/base16-material-lighter.fish create mode 100644 fish/functions/base16-material-palenight.fish create mode 100644 fish/functions/base16-material-vivid.fish create mode 100644 fish/functions/base16-material.fish create mode 100644 fish/functions/base16-mellow-purple.fish create mode 100644 fish/functions/base16-mexico-light.fish create mode 100644 fish/functions/base16-mocha.fish create mode 100644 fish/functions/base16-monokai.fish create mode 100644 fish/functions/base16-nebula.fish create mode 100644 fish/functions/base16-nord.fish create mode 100644 fish/functions/base16-nova.fish create mode 100644 fish/functions/base16-ocean.fish create mode 100644 fish/functions/base16-oceanicnext.fish create mode 100644 fish/functions/base16-one-light.fish create mode 100644 fish/functions/base16-onedark.fish create mode 100644 fish/functions/base16-outrun-dark.fish create mode 100644 fish/functions/base16-papercolor-dark.fish create mode 100644 fish/functions/base16-papercolor-light.fish create mode 100644 fish/functions/base16-paraiso.fish create mode 100644 fish/functions/base16-pasque.fish create mode 100644 fish/functions/base16-phd.fish create mode 100644 fish/functions/base16-pico.fish create mode 100644 fish/functions/base16-pinky.fish create mode 100644 fish/functions/base16-pop.fish create mode 100644 fish/functions/base16-porple.fish create mode 100644 fish/functions/base16-qualia.fish create mode 100644 fish/functions/base16-railscasts.fish create mode 100644 fish/functions/base16-rebecca.fish create mode 100644 fish/functions/base16-rose-pine-dawn.fish create mode 100644 fish/functions/base16-rose-pine-moon.fish create mode 100644 fish/functions/base16-rose-pine.fish create mode 100644 fish/functions/base16-sagelight.fish create mode 100644 fish/functions/base16-sakura.fish create mode 100644 fish/functions/base16-sandcastle.fish create mode 100644 fish/functions/base16-seti.fish create mode 100644 fish/functions/base16-shades-of-purple.fish create mode 100644 fish/functions/base16-shapeshifter.fish create mode 100644 fish/functions/base16-silk-dark.fish create mode 100644 fish/functions/base16-silk-light.fish create mode 100644 fish/functions/base16-snazzy.fish create mode 100644 fish/functions/base16-solarflare-light.fish create mode 100644 fish/functions/base16-solarflare.fish create mode 100644 fish/functions/base16-solarized-dark.fish create mode 100644 fish/functions/base16-solarized-light.fish create mode 100644 fish/functions/base16-spacemacs.fish create mode 100644 fish/functions/base16-summercamp.fish create mode 100644 fish/functions/base16-summerfruit-dark.fish create mode 100644 fish/functions/base16-summerfruit-light.fish create mode 100644 fish/functions/base16-synth-midnight-dark.fish create mode 100644 fish/functions/base16-synth-midnight-light.fish create mode 100644 fish/functions/base16-tango.fish create mode 100644 fish/functions/base16-tender.fish create mode 100644 fish/functions/base16-tomorrow-night-eighties.fish create mode 100644 fish/functions/base16-tomorrow-night.fish create mode 100644 fish/functions/base16-tomorrow.fish create mode 100644 fish/functions/base16-tube.fish create mode 100644 fish/functions/base16-twilight.fish create mode 100644 fish/functions/base16-unikitty-dark.fish create mode 100644 fish/functions/base16-unikitty-light.fish create mode 100644 fish/functions/base16-vulcan.fish create mode 100644 fish/functions/base16-windows-10-light.fish create mode 100644 fish/functions/base16-windows-10.fish create mode 100644 fish/functions/base16-windows-95-light.fish create mode 100644 fish/functions/base16-windows-95.fish create mode 100644 fish/functions/base16-windows-highcontrast-light.fish create mode 100644 fish/functions/base16-windows-highcontrast.fish create mode 100644 fish/functions/base16-windows-nt-light.fish create mode 100644 fish/functions/base16-windows-nt.fish create mode 100644 fish/functions/base16-woodland.fish create mode 100644 fish/functions/base16-xcode-dusk.fish create mode 100644 fish/functions/base16-zenburn.fish create mode 100644 fish/functions/fisher.fish create mode 100644 nvim/init.lua create mode 100644 nvim/lazy-lock.json create mode 100644 nvim/lua/adam/core/keymaps.lua create mode 100644 nvim/lua/adam/core/options.lua create mode 100644 nvim/lua/adam/lazy.lua create mode 100644 nvim/lua/adam/plugins/base16-nvim.lua create mode 100644 nvim/lua/adam/plugins/bufferline.lua create mode 100644 nvim/lua/adam/plugins/colorscheme.lua create mode 100644 nvim/lua/adam/plugins/comment.lua create mode 100644 nvim/lua/adam/plugins/dressing.lua create mode 100644 nvim/lua/adam/plugins/init.lua create mode 100644 nvim/lua/adam/plugins/lsp/lspconfig.lua create mode 100644 nvim/lua/adam/plugins/lsp/mason.lua create mode 100644 nvim/lua/adam/plugins/lualine.lua create mode 100644 nvim/lua/adam/plugins/neotest.lua create mode 100644 nvim/lua/adam/plugins/nvim-cmp.lua create mode 100644 nvim/lua/adam/plugins/nvim-tree.lua create mode 100644 nvim/lua/adam/plugins/nvim-treesitter.lua create mode 100644 nvim/lua/adam/plugins/rust-vim.lua create mode 100644 nvim/lua/adam/plugins/telescope.lua create mode 100644 nvim/lua/adam/plugins/vim-maximizer.lua create mode 100644 nvim/lua/adam/plugins/which-key-nvim.lua create mode 100644 tmux/.tmux.conf create mode 100644 tmux/.tmux/colors/base16-gruvbox-dark-hard.conf diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml new file mode 100644 index 0000000..3922e60 --- /dev/null +++ b/alacritty/alacritty.toml @@ -0,0 +1,56 @@ +[shell] +program = "/usr/bin/fish" + +[font] +size = 11.0 + +[font.normal] +# family = "Noto Sans Mono" +family = "NotoSansM Nerd Font" +# family = "MesloLGS NF" +style = "Regular" + +# [window] +# opacity = 1.0 + +[window.dimensions] +columns = 180 +lines = 40 + +# Base16 Gruvbox dark, hard - alacritty color config +# Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +[colors] +draw_bold_text_with_bright_colors = false + +# Default colors +[colors.primary] +background = '0x1d2021' +foreground = '0xd5c4a1' + +# Colors the cursor will use if `custom_cursor_colors` is true +[colors.cursor] +text = '0x1d2021' +cursor = '0xd5c4a1' + +# Normal colors +[colors.normal] +black = '0x1d2021' +red = '0xfb4934' +green = '0xb8bb26' +yellow = '0xfabd2f' +blue = '0x83a598' +magenta = '0xd3869b' +cyan = '0x8ec07c' +white = '0xd5c4a1' + +# Bright colors +[colors.bright] +black = '0x665c54' +red = '0xfe8019' +green = '0x3c3836' +yellow = '0x504945' +blue = '0xbdae93' +magenta = '0xebdbb2' +cyan = '0xd65d0e' +white = '0xfbf1c7' diff --git a/alacritty/alacritty.yml.bkup b/alacritty/alacritty.yml.bkup new file mode 100644 index 0000000..ee8f9b1 --- /dev/null +++ b/alacritty/alacritty.yml.bkup @@ -0,0 +1,11 @@ +font: + normal: + family: "MesloLGS NF" + +window: + dimensions: + columns: 180 + lines: 60 + + opacity: 0.85 + diff --git a/fish/colors/base16-gruvbox-dark-hard.fish b/fish/colors/base16-gruvbox-dark-hard.fish new file mode 100644 index 0000000..a91e590 --- /dev/null +++ b/fish/colors/base16-gruvbox-dark-hard.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox dark, hard scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-dark-hard -d "Gruvbox dark, hard" + set color00 1d/20/21 # Base 00 - Black + set color01 fb/49/34 # Base 08 - Red + set color02 b8/bb/26 # Base 0B - Green + set color03 fa/bd/2f # Base 0A - Yellow + set color04 83/a5/98 # Base 0D - Blue + set color05 d3/86/9b # Base 0E - Magenta + set color06 8e/c0/7c # Base 0C - Cyan + set color07 d5/c4/a1 # Base 05 - White + set color08 66/5c/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fb/f1/c7 # Base 07 - Bright White + set color16 fe/80/19 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 3c/38/36 # Base 01 + set color19 50/49/45 # Base 02 + set color20 bd/ae/93 # Base 04 + set color21 eb/db/b2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d5c4a1 # foreground + put_template_custom Ph 1d2021 # background + put_template_custom Pi d5c4a1 # bold color + put_template_custom Pj 504945 # selection color + put_template_custom Pk d5c4a1 # selected text color + put_template_custom Pl d5c4a1 # cursor + put_template_custom Pm 1d2021 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 504945 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 504945 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param bdae93 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=504945 + set -U fish_color_selection white --bold --background=504945 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-dark-hard + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/completions/asdf.fish b/fish/completions/asdf.fish new file mode 120000 index 0000000..30e2171 --- /dev/null +++ b/fish/completions/asdf.fish @@ -0,0 +1 @@ +/home/adam/.asdf/completions/asdf.fish \ No newline at end of file diff --git a/fish/completions/fisher.fish b/fish/completions/fisher.fish new file mode 100644 index 0000000..6d23ce4 --- /dev/null +++ b/fish/completions/fisher.fish @@ -0,0 +1,7 @@ +complete --command fisher --exclusive --long help --description "Print help" +complete --command fisher --exclusive --long version --description "Print version" +complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins" +complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins" +complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins" +complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex" +complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)" diff --git a/fish/conf.d/base16.fish b/fish/conf.d/base16.fish new file mode 100644 index 0000000..d892cce --- /dev/null +++ b/fish/conf.d/base16.fish @@ -0,0 +1,3 @@ +if test -n "$base16_theme" && status --is-interactive + base16-$base16_theme +end diff --git a/fish/config.fish b/fish/config.fish new file mode 100644 index 0000000..859442e --- /dev/null +++ b/fish/config.fish @@ -0,0 +1,6 @@ +if status is-interactive + # Commands to run in interactive sessions can go here + set fish_color_user 'yellow' +end + +source ~/.asdf/asdf.fish diff --git a/fish/fish_plugins b/fish/fish_plugins new file mode 100644 index 0000000..9fcad41 --- /dev/null +++ b/fish/fish_plugins @@ -0,0 +1,2 @@ +jorgebucaran/fisher +tomyun/base16-fish diff --git a/fish/fish_variables b/fish/fish_variables new file mode 100644 index 0000000..429dffa --- /dev/null +++ b/fish/fish_variables @@ -0,0 +1,37 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR _fisher_jorgebucaran_2F_fisher_files:\x7e/\x2econfig/fish/functions/fisher\x2efish\x1e\x7e/\x2econfig/fish/completions/fisher\x2efish +SETUVAR _fisher_plugins:jorgebucaran/fisher\x1etomyun/base16\x2dfish +SETUVAR _fisher_tomyun_2F_base16_2D_fish_files:\x7e/\x2econfig/fish/functions/base16\x2d3024\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dapathy\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dapprentice\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dashes\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dcave\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dcave\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2ddune\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2ddune\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2destuary\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2destuary\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dforest\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dforest\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dheath\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dheath\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dlakeside\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dlakeside\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dplateau\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dplateau\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dsavanna\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dsavanna\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dseaside\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dseaside\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dsulphurpool\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datelier\x2dsulphurpool\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2datlas\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dbespin\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dbathory\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dburzum\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2ddark\x2dfuneral\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dgorgoroth\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dimmortal\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dkhold\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dmarduk\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dmayhem\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dnile\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2dvenom\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dblack\x2dmetal\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dbrewer\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dbright\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dbrogrammer\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dbrushtrees\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dbrushtrees\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dchalk\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dcircus\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dclassic\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dclassic\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dcodeschool\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dcolors\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dcupcake\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dcupertino\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddanqing\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddarcula\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddarkmoss\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddarktooth\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddarkviolet\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddecaf\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddefault\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddefault\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddirtysea\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2ddracula\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dedge\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dedge\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2deighties\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dembers\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dequilibrium\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dequilibrium\x2dgray\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dequilibrium\x2dgray\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dequilibrium\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2despresso\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2deva\x2ddim\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2deva\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dflat\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dframer\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dfruit\x2dsoda\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgigavolt\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgithub\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgoogle\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgoogle\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgrayscale\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgrayscale\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgreenscreen\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2ddark\x2dhard\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2ddark\x2dmedium\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2ddark\x2dpale\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2ddark\x2dsoft\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2dlight\x2dhard\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2dlight\x2dmedium\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dgruvbox\x2dlight\x2dsoft\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhardcore\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dharmonic\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dharmonic\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dheetch\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dheetch\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhelios\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhopscotch\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhorizon\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhorizon\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhorizon\x2dterminal\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhorizon\x2dterminal\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhumanoid\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dhumanoid\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dia\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dia\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dicy\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dirblack\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2disotope\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dkimber\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmacintosh\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmarrakesh\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmateria\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmaterial\x2ddarker\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmaterial\x2dlighter\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmaterial\x2dpalenight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmaterial\x2dvivid\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmaterial\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmellow\x2dpurple\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmexico\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmocha\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dmonokai\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dnebula\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dnord\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dnova\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2docean\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2doceanicnext\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2done\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2donedark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2doutrun\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dpapercolor\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dpapercolor\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dparaiso\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dpasque\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dphd\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dpico\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dpinky\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dpop\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dporple\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dqualia\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2drailscasts\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2drebecca\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2drose\x2dpine\x2ddawn\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2drose\x2dpine\x2dmoon\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2drose\x2dpine\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsagelight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsakura\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsandcastle\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dseti\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dshades\x2dof\x2dpurple\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dshapeshifter\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsilk\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsilk\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsnazzy\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsolarflare\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsolarflare\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsolarized\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsolarized\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dspacemacs\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsummercamp\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsummerfruit\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsummerfruit\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsynth\x2dmidnight\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dsynth\x2dmidnight\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtango\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtender\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtomorrow\x2dnight\x2deighties\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtomorrow\x2dnight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtomorrow\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtube\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dtwilight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dunikitty\x2ddark\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dunikitty\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dvulcan\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2d10\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2d10\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2d95\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2d95\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2dhighcontrast\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2dhighcontrast\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2dnt\x2dlight\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwindows\x2dnt\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dwoodland\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dxcode\x2ddusk\x2efish\x1e\x7e/\x2econfig/fish/functions/base16\x2dzenburn\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/base16\x2efish +SETUVAR _fisher_upgraded_to_4_4:\x1d +SETUVAR base16_theme:gruvbox\x2ddark\x2dhard +SETUVAR fish_color_autosuggestion:504945 +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:green +SETUVAR fish_color_comment:504945 +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:brblack +SETUVAR fish_color_error:red +SETUVAR fish_color_escape:yellow +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:blue +SETUVAR fish_color_param:bdae93 +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3d504945 +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3d504945 +SETUVAR fish_color_status:red +SETUVAR fish_color_user:yellow +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:yellow\x1e\x2d\x2ddim +SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/fish/functions/base16-3024.fish b/fish/functions/base16-3024.fish new file mode 100644 index 0000000..34ca804 --- /dev/null +++ b/fish/functions/base16-3024.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# 3024 scheme by Jan T. Sott (http://github.com/idleberg) + +function base16-3024 -d "3024" + set color00 09/03/00 # Base 00 - Black + set color01 db/2d/20 # Base 08 - Red + set color02 01/a2/52 # Base 0B - Green + set color03 fd/ed/02 # Base 0A - Yellow + set color04 01/a0/e4 # Base 0D - Blue + set color05 a1/6a/94 # Base 0E - Magenta + set color06 b5/e4/f4 # Base 0C - Cyan + set color07 a5/a2/a2 # Base 05 - White + set color08 5c/58/55 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f7/f7/f7 # Base 07 - Bright White + set color16 e8/bb/d0 # Base 09 + set color17 cd/ab/53 # Base 0F + set color18 3a/34/32 # Base 01 + set color19 4a/45/43 # Base 02 + set color20 80/7d/7c # Base 04 + set color21 d6/d5/d4 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a5a2a2 # foreground + put_template_custom Ph 090300 # background + put_template_custom Pi a5a2a2 # bold color + put_template_custom Pj 4a4543 # selection color + put_template_custom Pk a5a2a2 # selected text color + put_template_custom Pl a5a2a2 # cursor + put_template_custom Pm 090300 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4a4543 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4a4543 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 807d7c + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4a4543 + set -U fish_color_selection white --bold --background=4a4543 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme 3024 + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-apathy.fish b/fish/functions/base16-apathy.fish new file mode 100644 index 0000000..3450879 --- /dev/null +++ b/fish/functions/base16-apathy.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Apathy scheme by Jannik Siebert (https://github.com/janniks) + +function base16-apathy -d "Apathy" + set color00 03/1A/16 # Base 00 - Black + set color01 3E/96/88 # Base 08 - Red + set color02 88/3E/96 # Base 0B - Green + set color03 3E/4C/96 # Base 0A - Yellow + set color04 96/88/3E # Base 0D - Blue + set color05 4C/96/3E # Base 0E - Magenta + set color06 96/3E/4C # Base 0C - Cyan + set color07 81/B5/AC # Base 05 - White + set color08 2B/68/5E # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 D2/E7/E4 # Base 07 - Bright White + set color16 3E/79/96 # Base 09 + set color17 3E/96/5B # Base 0F + set color18 0B/34/2D # Base 01 + set color19 18/4E/45 # Base 02 + set color20 5F/9C/92 # Base 04 + set color21 A7/CE/C8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 81B5AC # foreground + put_template_custom Ph 031A16 # background + put_template_custom Pi 81B5AC # bold color + put_template_custom Pj 184E45 # selection color + put_template_custom Pk 81B5AC # selected text color + put_template_custom Pl 81B5AC # cursor + put_template_custom Pm 031A16 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 184E45 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 184E45 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5F9C92 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=184E45 + set -U fish_color_selection white --bold --background=184E45 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme apathy + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-apprentice.fish b/fish/functions/base16-apprentice.fish new file mode 100644 index 0000000..6689cfa --- /dev/null +++ b/fish/functions/base16-apprentice.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Apprentice scheme by romainl + +function base16-apprentice -d "Apprentice" + set color00 26/26/26 # Base 00 - Black + set color01 5F/87/87 # Base 08 - Red + set color02 87/AF/87 # Base 0B - Green + set color03 5F/87/87 # Base 0A - Yellow + set color04 FF/FF/AF # Base 0D - Blue + set color05 87/AF/D7 # Base 0E - Magenta + set color06 5F/87/5F # Base 0C - Cyan + set color07 BC/BC/BC # Base 05 - White + set color08 6C/6C/6C # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 FF/87/00 # Base 09 + set color17 5F/87/AF # Base 0F + set color18 30/30/30 # Base 01 + set color19 33/33/33 # Base 02 + set color20 78/78/78 # Base 04 + set color21 C9/C9/C9 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg BCBCBC # foreground + put_template_custom Ph 262626 # background + put_template_custom Pi BCBCBC # bold color + put_template_custom Pj 333333 # selection color + put_template_custom Pk BCBCBC # selected text color + put_template_custom Pl BCBCBC # cursor + put_template_custom Pm 262626 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 333333 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 333333 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 787878 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=333333 + set -U fish_color_selection white --bold --background=333333 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme apprentice + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-ashes.fish b/fish/functions/base16-ashes.fish new file mode 100644 index 0000000..c1ce856 --- /dev/null +++ b/fish/functions/base16-ashes.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Ashes scheme by Jannik Siebert (https://github.com/janniks) + +function base16-ashes -d "Ashes" + set color00 1C/20/23 # Base 00 - Black + set color01 C7/AE/95 # Base 08 - Red + set color02 95/C7/AE # Base 0B - Green + set color03 AE/C7/95 # Base 0A - Yellow + set color04 AE/95/C7 # Base 0D - Blue + set color05 C7/95/AE # Base 0E - Magenta + set color06 95/AE/C7 # Base 0C - Cyan + set color07 C7/CC/D1 # Base 05 - White + set color08 74/7C/84 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 F3/F4/F5 # Base 07 - Bright White + set color16 C7/C7/95 # Base 09 + set color17 C7/95/95 # Base 0F + set color18 39/3F/45 # Base 01 + set color19 56/5E/65 # Base 02 + set color20 AD/B3/BA # Base 04 + set color21 DF/E2/E5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg C7CCD1 # foreground + put_template_custom Ph 1C2023 # background + put_template_custom Pi C7CCD1 # bold color + put_template_custom Pj 565E65 # selection color + put_template_custom Pk C7CCD1 # selected text color + put_template_custom Pl C7CCD1 # cursor + put_template_custom Pm 1C2023 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 565E65 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 565E65 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param ADB3BA + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=565E65 + set -U fish_color_selection white --bold --background=565E65 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme ashes + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-cave-light.fish b/fish/functions/base16-atelier-cave-light.fish new file mode 100644 index 0000000..0583658 --- /dev/null +++ b/fish/functions/base16-atelier-cave-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Cave Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-cave-light -d "Atelier Cave Light" + set color00 ef/ec/f4 # Base 00 - Black + set color01 be/46/78 # Base 08 - Red + set color02 2a/92/92 # Base 0B - Green + set color03 a0/6e/3b # Base 0A - Yellow + set color04 57/6d/db # Base 0D - Blue + set color05 95/5a/e7 # Base 0E - Magenta + set color06 39/8b/c6 # Base 0C - Cyan + set color07 58/52/60 # Base 05 - White + set color08 7e/78/87 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 19/17/1c # Base 07 - Bright White + set color16 aa/57/3c # Base 09 + set color17 bf/40/bf # Base 0F + set color18 e2/df/e7 # Base 01 + set color19 8b/87/92 # Base 02 + set color20 65/5f/6d # Base 04 + set color21 26/23/2a # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 585260 # foreground + put_template_custom Ph efecf4 # background + put_template_custom Pi 585260 # bold color + put_template_custom Pj 8b8792 # selection color + put_template_custom Pk 585260 # selected text color + put_template_custom Pl 585260 # cursor + put_template_custom Pm efecf4 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 8b8792 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 8b8792 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 655f6d + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=8b8792 + set -U fish_color_selection white --bold --background=8b8792 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-cave-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-cave.fish b/fish/functions/base16-atelier-cave.fish new file mode 100644 index 0000000..b66b6ee --- /dev/null +++ b/fish/functions/base16-atelier-cave.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Cave scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-cave -d "Atelier Cave" + set color00 19/17/1c # Base 00 - Black + set color01 be/46/78 # Base 08 - Red + set color02 2a/92/92 # Base 0B - Green + set color03 a0/6e/3b # Base 0A - Yellow + set color04 57/6d/db # Base 0D - Blue + set color05 95/5a/e7 # Base 0E - Magenta + set color06 39/8b/c6 # Base 0C - Cyan + set color07 8b/87/92 # Base 05 - White + set color08 65/5f/6d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ef/ec/f4 # Base 07 - Bright White + set color16 aa/57/3c # Base 09 + set color17 bf/40/bf # Base 0F + set color18 26/23/2a # Base 01 + set color19 58/52/60 # Base 02 + set color20 7e/78/87 # Base 04 + set color21 e2/df/e7 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 8b8792 # foreground + put_template_custom Ph 19171c # background + put_template_custom Pi 8b8792 # bold color + put_template_custom Pj 585260 # selection color + put_template_custom Pk 8b8792 # selected text color + put_template_custom Pl 8b8792 # cursor + put_template_custom Pm 19171c # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 585260 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 585260 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e7887 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=585260 + set -U fish_color_selection white --bold --background=585260 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-cave + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-dune-light.fish b/fish/functions/base16-atelier-dune-light.fish new file mode 100644 index 0000000..5d6f94e --- /dev/null +++ b/fish/functions/base16-atelier-dune-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Dune Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-dune-light -d "Atelier Dune Light" + set color00 fe/fb/ec # Base 00 - Black + set color01 d7/37/37 # Base 08 - Red + set color02 60/ac/39 # Base 0B - Green + set color03 ae/95/13 # Base 0A - Yellow + set color04 66/84/e1 # Base 0D - Blue + set color05 b8/54/d4 # Base 0E - Magenta + set color06 1f/ad/83 # Base 0C - Cyan + set color07 6e/6b/5e # Base 05 - White + set color08 99/95/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 20/20/1d # Base 07 - Bright White + set color16 b6/56/11 # Base 09 + set color17 d4/35/52 # Base 0F + set color18 e8/e4/cf # Base 01 + set color19 a6/a2/8c # Base 02 + set color20 7d/7a/68 # Base 04 + set color21 29/28/24 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 6e6b5e # foreground + put_template_custom Ph fefbec # background + put_template_custom Pi 6e6b5e # bold color + put_template_custom Pj a6a28c # selection color + put_template_custom Pk 6e6b5e # selected text color + put_template_custom Pl 6e6b5e # cursor + put_template_custom Pm fefbec # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion a6a28c + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment a6a28c + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7d7a68 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=a6a28c + set -U fish_color_selection white --bold --background=a6a28c + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-dune-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-dune.fish b/fish/functions/base16-atelier-dune.fish new file mode 100644 index 0000000..36325cc --- /dev/null +++ b/fish/functions/base16-atelier-dune.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Dune scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-dune -d "Atelier Dune" + set color00 20/20/1d # Base 00 - Black + set color01 d7/37/37 # Base 08 - Red + set color02 60/ac/39 # Base 0B - Green + set color03 ae/95/13 # Base 0A - Yellow + set color04 66/84/e1 # Base 0D - Blue + set color05 b8/54/d4 # Base 0E - Magenta + set color06 1f/ad/83 # Base 0C - Cyan + set color07 a6/a2/8c # Base 05 - White + set color08 7d/7a/68 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fe/fb/ec # Base 07 - Bright White + set color16 b6/56/11 # Base 09 + set color17 d4/35/52 # Base 0F + set color18 29/28/24 # Base 01 + set color19 6e/6b/5e # Base 02 + set color20 99/95/80 # Base 04 + set color21 e8/e4/cf # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a6a28c # foreground + put_template_custom Ph 20201d # background + put_template_custom Pi a6a28c # bold color + put_template_custom Pj 6e6b5e # selection color + put_template_custom Pk a6a28c # selected text color + put_template_custom Pl a6a28c # cursor + put_template_custom Pm 20201d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 6e6b5e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 6e6b5e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999580 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=6e6b5e + set -U fish_color_selection white --bold --background=6e6b5e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-dune + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-estuary-light.fish b/fish/functions/base16-atelier-estuary-light.fish new file mode 100644 index 0000000..c133494 --- /dev/null +++ b/fish/functions/base16-atelier-estuary-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Estuary Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-estuary-light -d "Atelier Estuary Light" + set color00 f4/f3/ec # Base 00 - Black + set color01 ba/62/36 # Base 08 - Red + set color02 7d/97/26 # Base 0B - Green + set color03 a5/98/0d # Base 0A - Yellow + set color04 36/a1/66 # Base 0D - Blue + set color05 5f/91/82 # Base 0E - Magenta + set color06 5b/9d/48 # Base 0C - Cyan + set color07 5f/5e/4e # Base 05 - White + set color08 87/85/73 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 22/22/1b # Base 07 - Bright White + set color16 ae/73/13 # Base 09 + set color17 9d/6c/7c # Base 0F + set color18 e7/e6/df # Base 01 + set color19 92/91/81 # Base 02 + set color20 6c/6b/5a # Base 04 + set color21 30/2f/27 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5f5e4e # foreground + put_template_custom Ph f4f3ec # background + put_template_custom Pi 5f5e4e # bold color + put_template_custom Pj 929181 # selection color + put_template_custom Pk 5f5e4e # selected text color + put_template_custom Pl 5f5e4e # cursor + put_template_custom Pm f4f3ec # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 929181 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 929181 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6c6b5a + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=929181 + set -U fish_color_selection white --bold --background=929181 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-estuary-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-estuary.fish b/fish/functions/base16-atelier-estuary.fish new file mode 100644 index 0000000..f979d7b --- /dev/null +++ b/fish/functions/base16-atelier-estuary.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Estuary scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-estuary -d "Atelier Estuary" + set color00 22/22/1b # Base 00 - Black + set color01 ba/62/36 # Base 08 - Red + set color02 7d/97/26 # Base 0B - Green + set color03 a5/98/0d # Base 0A - Yellow + set color04 36/a1/66 # Base 0D - Blue + set color05 5f/91/82 # Base 0E - Magenta + set color06 5b/9d/48 # Base 0C - Cyan + set color07 92/91/81 # Base 05 - White + set color08 6c/6b/5a # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f4/f3/ec # Base 07 - Bright White + set color16 ae/73/13 # Base 09 + set color17 9d/6c/7c # Base 0F + set color18 30/2f/27 # Base 01 + set color19 5f/5e/4e # Base 02 + set color20 87/85/73 # Base 04 + set color21 e7/e6/df # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 929181 # foreground + put_template_custom Ph 22221b # background + put_template_custom Pi 929181 # bold color + put_template_custom Pj 5f5e4e # selection color + put_template_custom Pk 929181 # selected text color + put_template_custom Pl 929181 # cursor + put_template_custom Pm 22221b # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5f5e4e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5f5e4e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 878573 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5f5e4e + set -U fish_color_selection white --bold --background=5f5e4e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-estuary + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-forest-light.fish b/fish/functions/base16-atelier-forest-light.fish new file mode 100644 index 0000000..9121c2e --- /dev/null +++ b/fish/functions/base16-atelier-forest-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Forest Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-forest-light -d "Atelier Forest Light" + set color00 f1/ef/ee # Base 00 - Black + set color01 f2/2c/40 # Base 08 - Red + set color02 7b/97/26 # Base 0B - Green + set color03 c3/84/18 # Base 0A - Yellow + set color04 40/7e/e7 # Base 0D - Blue + set color05 66/66/ea # Base 0E - Magenta + set color06 3d/97/b8 # Base 0C - Cyan + set color07 68/61/5e # Base 05 - White + set color08 9c/94/91 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 1b/19/18 # Base 07 - Bright White + set color16 df/53/20 # Base 09 + set color17 c3/3f/f3 # Base 0F + set color18 e6/e2/e0 # Base 01 + set color19 a8/a1/9f # Base 02 + set color20 76/6e/6b # Base 04 + set color21 2c/24/21 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 68615e # foreground + put_template_custom Ph f1efee # background + put_template_custom Pi 68615e # bold color + put_template_custom Pj a8a19f # selection color + put_template_custom Pk 68615e # selected text color + put_template_custom Pl 68615e # cursor + put_template_custom Pm f1efee # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion a8a19f + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment a8a19f + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 766e6b + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=a8a19f + set -U fish_color_selection white --bold --background=a8a19f + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-forest-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-forest.fish b/fish/functions/base16-atelier-forest.fish new file mode 100644 index 0000000..287b822 --- /dev/null +++ b/fish/functions/base16-atelier-forest.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Forest scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-forest -d "Atelier Forest" + set color00 1b/19/18 # Base 00 - Black + set color01 f2/2c/40 # Base 08 - Red + set color02 7b/97/26 # Base 0B - Green + set color03 c3/84/18 # Base 0A - Yellow + set color04 40/7e/e7 # Base 0D - Blue + set color05 66/66/ea # Base 0E - Magenta + set color06 3d/97/b8 # Base 0C - Cyan + set color07 a8/a1/9f # Base 05 - White + set color08 76/6e/6b # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f1/ef/ee # Base 07 - Bright White + set color16 df/53/20 # Base 09 + set color17 c3/3f/f3 # Base 0F + set color18 2c/24/21 # Base 01 + set color19 68/61/5e # Base 02 + set color20 9c/94/91 # Base 04 + set color21 e6/e2/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a8a19f # foreground + put_template_custom Ph 1b1918 # background + put_template_custom Pi a8a19f # bold color + put_template_custom Pj 68615e # selection color + put_template_custom Pk a8a19f # selected text color + put_template_custom Pl a8a19f # cursor + put_template_custom Pm 1b1918 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 68615e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 68615e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9c9491 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=68615e + set -U fish_color_selection white --bold --background=68615e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-forest + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-heath-light.fish b/fish/functions/base16-atelier-heath-light.fish new file mode 100644 index 0000000..a546977 --- /dev/null +++ b/fish/functions/base16-atelier-heath-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Heath Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-heath-light -d "Atelier Heath Light" + set color00 f7/f3/f7 # Base 00 - Black + set color01 ca/40/2b # Base 08 - Red + set color02 91/8b/3b # Base 0B - Green + set color03 bb/8a/35 # Base 0A - Yellow + set color04 51/6a/ec # Base 0D - Blue + set color05 7b/59/c0 # Base 0E - Magenta + set color06 15/93/93 # Base 0C - Cyan + set color07 69/5d/69 # Base 05 - White + set color08 9e/8f/9e # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 1b/18/1b # Base 07 - Bright White + set color16 a6/59/26 # Base 09 + set color17 cc/33/cc # Base 0F + set color18 d8/ca/d8 # Base 01 + set color19 ab/9b/ab # Base 02 + set color20 77/69/77 # Base 04 + set color21 29/23/29 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 695d69 # foreground + put_template_custom Ph f7f3f7 # background + put_template_custom Pi 695d69 # bold color + put_template_custom Pj ab9bab # selection color + put_template_custom Pk 695d69 # selected text color + put_template_custom Pl 695d69 # cursor + put_template_custom Pm f7f3f7 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion ab9bab + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment ab9bab + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 776977 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=ab9bab + set -U fish_color_selection white --bold --background=ab9bab + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-heath-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-heath.fish b/fish/functions/base16-atelier-heath.fish new file mode 100644 index 0000000..32934ec --- /dev/null +++ b/fish/functions/base16-atelier-heath.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Heath scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-heath -d "Atelier Heath" + set color00 1b/18/1b # Base 00 - Black + set color01 ca/40/2b # Base 08 - Red + set color02 91/8b/3b # Base 0B - Green + set color03 bb/8a/35 # Base 0A - Yellow + set color04 51/6a/ec # Base 0D - Blue + set color05 7b/59/c0 # Base 0E - Magenta + set color06 15/93/93 # Base 0C - Cyan + set color07 ab/9b/ab # Base 05 - White + set color08 77/69/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f7/f3/f7 # Base 07 - Bright White + set color16 a6/59/26 # Base 09 + set color17 cc/33/cc # Base 0F + set color18 29/23/29 # Base 01 + set color19 69/5d/69 # Base 02 + set color20 9e/8f/9e # Base 04 + set color21 d8/ca/d8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg ab9bab # foreground + put_template_custom Ph 1b181b # background + put_template_custom Pi ab9bab # bold color + put_template_custom Pj 695d69 # selection color + put_template_custom Pk ab9bab # selected text color + put_template_custom Pl ab9bab # cursor + put_template_custom Pm 1b181b # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 695d69 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 695d69 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9e8f9e + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=695d69 + set -U fish_color_selection white --bold --background=695d69 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-heath + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-lakeside-light.fish b/fish/functions/base16-atelier-lakeside-light.fish new file mode 100644 index 0000000..e2d1ebc --- /dev/null +++ b/fish/functions/base16-atelier-lakeside-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Lakeside Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-lakeside-light -d "Atelier Lakeside Light" + set color00 eb/f8/ff # Base 00 - Black + set color01 d2/2d/72 # Base 08 - Red + set color02 56/8c/3b # Base 0B - Green + set color03 8a/8a/0f # Base 0A - Yellow + set color04 25/7f/ad # Base 0D - Blue + set color05 6b/6b/b8 # Base 0E - Magenta + set color06 2d/8f/6f # Base 0C - Cyan + set color07 51/6d/7b # Base 05 - White + set color08 71/95/a8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 16/1b/1d # Base 07 - Bright White + set color16 93/5c/25 # Base 09 + set color17 b7/2d/d2 # Base 0F + set color18 c1/e4/f6 # Base 01 + set color19 7e/a2/b4 # Base 02 + set color20 5a/7b/8c # Base 04 + set color21 1f/29/2e # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 516d7b # foreground + put_template_custom Ph ebf8ff # background + put_template_custom Pi 516d7b # bold color + put_template_custom Pj 7ea2b4 # selection color + put_template_custom Pk 516d7b # selected text color + put_template_custom Pl 516d7b # cursor + put_template_custom Pm ebf8ff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 7ea2b4 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 7ea2b4 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5a7b8c + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=7ea2b4 + set -U fish_color_selection white --bold --background=7ea2b4 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-lakeside-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-lakeside.fish b/fish/functions/base16-atelier-lakeside.fish new file mode 100644 index 0000000..cd6c785 --- /dev/null +++ b/fish/functions/base16-atelier-lakeside.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Lakeside scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-lakeside -d "Atelier Lakeside" + set color00 16/1b/1d # Base 00 - Black + set color01 d2/2d/72 # Base 08 - Red + set color02 56/8c/3b # Base 0B - Green + set color03 8a/8a/0f # Base 0A - Yellow + set color04 25/7f/ad # Base 0D - Blue + set color05 6b/6b/b8 # Base 0E - Magenta + set color06 2d/8f/6f # Base 0C - Cyan + set color07 7e/a2/b4 # Base 05 - White + set color08 5a/7b/8c # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 eb/f8/ff # Base 07 - Bright White + set color16 93/5c/25 # Base 09 + set color17 b7/2d/d2 # Base 0F + set color18 1f/29/2e # Base 01 + set color19 51/6d/7b # Base 02 + set color20 71/95/a8 # Base 04 + set color21 c1/e4/f6 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 7ea2b4 # foreground + put_template_custom Ph 161b1d # background + put_template_custom Pi 7ea2b4 # bold color + put_template_custom Pj 516d7b # selection color + put_template_custom Pk 7ea2b4 # selected text color + put_template_custom Pl 7ea2b4 # cursor + put_template_custom Pm 161b1d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 516d7b + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 516d7b + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7195a8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=516d7b + set -U fish_color_selection white --bold --background=516d7b + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-lakeside + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-plateau-light.fish b/fish/functions/base16-atelier-plateau-light.fish new file mode 100644 index 0000000..9e00a60 --- /dev/null +++ b/fish/functions/base16-atelier-plateau-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Plateau Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-plateau-light -d "Atelier Plateau Light" + set color00 f4/ec/ec # Base 00 - Black + set color01 ca/49/49 # Base 08 - Red + set color02 4b/8b/8b # Base 0B - Green + set color03 a0/6e/3b # Base 0A - Yellow + set color04 72/72/ca # Base 0D - Blue + set color05 84/64/c4 # Base 0E - Magenta + set color06 54/85/b6 # Base 0C - Cyan + set color07 58/50/50 # Base 05 - White + set color08 7e/77/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 1b/18/18 # Base 07 - Bright White + set color16 b4/5a/3c # Base 09 + set color17 bd/51/87 # Base 0F + set color18 e7/df/df # Base 01 + set color19 8a/85/85 # Base 02 + set color20 65/5d/5d # Base 04 + set color21 29/24/24 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 585050 # foreground + put_template_custom Ph f4ecec # background + put_template_custom Pi 585050 # bold color + put_template_custom Pj 8a8585 # selection color + put_template_custom Pk 585050 # selected text color + put_template_custom Pl 585050 # cursor + put_template_custom Pm f4ecec # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 8a8585 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 8a8585 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 655d5d + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=8a8585 + set -U fish_color_selection white --bold --background=8a8585 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-plateau-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-plateau.fish b/fish/functions/base16-atelier-plateau.fish new file mode 100644 index 0000000..ae755dd --- /dev/null +++ b/fish/functions/base16-atelier-plateau.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Plateau scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-plateau -d "Atelier Plateau" + set color00 1b/18/18 # Base 00 - Black + set color01 ca/49/49 # Base 08 - Red + set color02 4b/8b/8b # Base 0B - Green + set color03 a0/6e/3b # Base 0A - Yellow + set color04 72/72/ca # Base 0D - Blue + set color05 84/64/c4 # Base 0E - Magenta + set color06 54/85/b6 # Base 0C - Cyan + set color07 8a/85/85 # Base 05 - White + set color08 65/5d/5d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f4/ec/ec # Base 07 - Bright White + set color16 b4/5a/3c # Base 09 + set color17 bd/51/87 # Base 0F + set color18 29/24/24 # Base 01 + set color19 58/50/50 # Base 02 + set color20 7e/77/77 # Base 04 + set color21 e7/df/df # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 8a8585 # foreground + put_template_custom Ph 1b1818 # background + put_template_custom Pi 8a8585 # bold color + put_template_custom Pj 585050 # selection color + put_template_custom Pk 8a8585 # selected text color + put_template_custom Pl 8a8585 # cursor + put_template_custom Pm 1b1818 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 585050 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 585050 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e7777 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=585050 + set -U fish_color_selection white --bold --background=585050 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-plateau + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-savanna-light.fish b/fish/functions/base16-atelier-savanna-light.fish new file mode 100644 index 0000000..4fa949c --- /dev/null +++ b/fish/functions/base16-atelier-savanna-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Savanna Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-savanna-light -d "Atelier Savanna Light" + set color00 ec/f4/ee # Base 00 - Black + set color01 b1/61/39 # Base 08 - Red + set color02 48/99/63 # Base 0B - Green + set color03 a0/7e/3b # Base 0A - Yellow + set color04 47/8c/90 # Base 0D - Blue + set color05 55/85/9b # Base 0E - Magenta + set color06 1c/9a/a0 # Base 0C - Cyan + set color07 52/60/57 # Base 05 - White + set color08 78/87/7d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 17/1c/19 # Base 07 - Bright White + set color16 9f/71/3c # Base 09 + set color17 86/74/69 # Base 0F + set color18 df/e7/e2 # Base 01 + set color19 87/92/8a # Base 02 + set color20 5f/6d/64 # Base 04 + set color21 23/2a/25 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 526057 # foreground + put_template_custom Ph ecf4ee # background + put_template_custom Pi 526057 # bold color + put_template_custom Pj 87928a # selection color + put_template_custom Pk 526057 # selected text color + put_template_custom Pl 526057 # cursor + put_template_custom Pm ecf4ee # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 87928a + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 87928a + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5f6d64 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=87928a + set -U fish_color_selection white --bold --background=87928a + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-savanna-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-savanna.fish b/fish/functions/base16-atelier-savanna.fish new file mode 100644 index 0000000..d384720 --- /dev/null +++ b/fish/functions/base16-atelier-savanna.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Savanna scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-savanna -d "Atelier Savanna" + set color00 17/1c/19 # Base 00 - Black + set color01 b1/61/39 # Base 08 - Red + set color02 48/99/63 # Base 0B - Green + set color03 a0/7e/3b # Base 0A - Yellow + set color04 47/8c/90 # Base 0D - Blue + set color05 55/85/9b # Base 0E - Magenta + set color06 1c/9a/a0 # Base 0C - Cyan + set color07 87/92/8a # Base 05 - White + set color08 5f/6d/64 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ec/f4/ee # Base 07 - Bright White + set color16 9f/71/3c # Base 09 + set color17 86/74/69 # Base 0F + set color18 23/2a/25 # Base 01 + set color19 52/60/57 # Base 02 + set color20 78/87/7d # Base 04 + set color21 df/e7/e2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 87928a # foreground + put_template_custom Ph 171c19 # background + put_template_custom Pi 87928a # bold color + put_template_custom Pj 526057 # selection color + put_template_custom Pk 87928a # selected text color + put_template_custom Pl 87928a # cursor + put_template_custom Pm 171c19 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 526057 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 526057 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 78877d + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=526057 + set -U fish_color_selection white --bold --background=526057 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-savanna + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-seaside-light.fish b/fish/functions/base16-atelier-seaside-light.fish new file mode 100644 index 0000000..1b970a7 --- /dev/null +++ b/fish/functions/base16-atelier-seaside-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Seaside Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-seaside-light -d "Atelier Seaside Light" + set color00 f4/fb/f4 # Base 00 - Black + set color01 e6/19/3c # Base 08 - Red + set color02 29/a3/29 # Base 0B - Green + set color03 98/98/1b # Base 0A - Yellow + set color04 3d/62/f5 # Base 0D - Blue + set color05 ad/2b/ee # Base 0E - Magenta + set color06 19/99/b3 # Base 0C - Cyan + set color07 5e/6e/5e # Base 05 - White + set color08 80/99/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 13/15/13 # Base 07 - Bright White + set color16 87/71/1d # Base 09 + set color17 e6/19/c3 # Base 0F + set color18 cf/e8/cf # Base 01 + set color19 8c/a6/8c # Base 02 + set color20 68/7d/68 # Base 04 + set color21 24/29/24 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5e6e5e # foreground + put_template_custom Ph f4fbf4 # background + put_template_custom Pi 5e6e5e # bold color + put_template_custom Pj 8ca68c # selection color + put_template_custom Pk 5e6e5e # selected text color + put_template_custom Pl 5e6e5e # cursor + put_template_custom Pm f4fbf4 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 8ca68c + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 8ca68c + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 687d68 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=8ca68c + set -U fish_color_selection white --bold --background=8ca68c + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-seaside-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-seaside.fish b/fish/functions/base16-atelier-seaside.fish new file mode 100644 index 0000000..3872d63 --- /dev/null +++ b/fish/functions/base16-atelier-seaside.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Seaside scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-seaside -d "Atelier Seaside" + set color00 13/15/13 # Base 00 - Black + set color01 e6/19/3c # Base 08 - Red + set color02 29/a3/29 # Base 0B - Green + set color03 98/98/1b # Base 0A - Yellow + set color04 3d/62/f5 # Base 0D - Blue + set color05 ad/2b/ee # Base 0E - Magenta + set color06 19/99/b3 # Base 0C - Cyan + set color07 8c/a6/8c # Base 05 - White + set color08 68/7d/68 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f4/fb/f4 # Base 07 - Bright White + set color16 87/71/1d # Base 09 + set color17 e6/19/c3 # Base 0F + set color18 24/29/24 # Base 01 + set color19 5e/6e/5e # Base 02 + set color20 80/99/80 # Base 04 + set color21 cf/e8/cf # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 8ca68c # foreground + put_template_custom Ph 131513 # background + put_template_custom Pi 8ca68c # bold color + put_template_custom Pj 5e6e5e # selection color + put_template_custom Pk 8ca68c # selected text color + put_template_custom Pl 8ca68c # cursor + put_template_custom Pm 131513 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5e6e5e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5e6e5e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 809980 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5e6e5e + set -U fish_color_selection white --bold --background=5e6e5e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-seaside + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-sulphurpool-light.fish b/fish/functions/base16-atelier-sulphurpool-light.fish new file mode 100644 index 0000000..34896e1 --- /dev/null +++ b/fish/functions/base16-atelier-sulphurpool-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Sulphurpool Light scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-sulphurpool-light -d "Atelier Sulphurpool Light" + set color00 f5/f7/ff # Base 00 - Black + set color01 c9/49/22 # Base 08 - Red + set color02 ac/97/39 # Base 0B - Green + set color03 c0/8b/30 # Base 0A - Yellow + set color04 3d/8f/d1 # Base 0D - Blue + set color05 66/79/cc # Base 0E - Magenta + set color06 22/a2/c9 # Base 0C - Cyan + set color07 5e/66/87 # Base 05 - White + set color08 89/8e/a4 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 20/27/46 # Base 07 - Bright White + set color16 c7/6b/29 # Base 09 + set color17 9c/63/7a # Base 0F + set color18 df/e2/f1 # Base 01 + set color19 97/9d/b4 # Base 02 + set color20 6b/73/94 # Base 04 + set color21 29/32/56 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5e6687 # foreground + put_template_custom Ph f5f7ff # background + put_template_custom Pi 5e6687 # bold color + put_template_custom Pj 979db4 # selection color + put_template_custom Pk 5e6687 # selected text color + put_template_custom Pl 5e6687 # cursor + put_template_custom Pm f5f7ff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 979db4 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 979db4 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6b7394 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=979db4 + set -U fish_color_selection white --bold --background=979db4 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-sulphurpool-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atelier-sulphurpool.fish b/fish/functions/base16-atelier-sulphurpool.fish new file mode 100644 index 0000000..e4582ff --- /dev/null +++ b/fish/functions/base16-atelier-sulphurpool.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atelier Sulphurpool scheme by Bram de Haan (http://atelierbramdehaan.nl) + +function base16-atelier-sulphurpool -d "Atelier Sulphurpool" + set color00 20/27/46 # Base 00 - Black + set color01 c9/49/22 # Base 08 - Red + set color02 ac/97/39 # Base 0B - Green + set color03 c0/8b/30 # Base 0A - Yellow + set color04 3d/8f/d1 # Base 0D - Blue + set color05 66/79/cc # Base 0E - Magenta + set color06 22/a2/c9 # Base 0C - Cyan + set color07 97/9d/b4 # Base 05 - White + set color08 6b/73/94 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f5/f7/ff # Base 07 - Bright White + set color16 c7/6b/29 # Base 09 + set color17 9c/63/7a # Base 0F + set color18 29/32/56 # Base 01 + set color19 5e/66/87 # Base 02 + set color20 89/8e/a4 # Base 04 + set color21 df/e2/f1 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 979db4 # foreground + put_template_custom Ph 202746 # background + put_template_custom Pi 979db4 # bold color + put_template_custom Pj 5e6687 # selection color + put_template_custom Pk 979db4 # selected text color + put_template_custom Pl 979db4 # cursor + put_template_custom Pm 202746 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5e6687 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5e6687 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 898ea4 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5e6687 + set -U fish_color_selection white --bold --background=5e6687 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atelier-sulphurpool + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-atlas.fish b/fish/functions/base16-atlas.fish new file mode 100644 index 0000000..a68a285 --- /dev/null +++ b/fish/functions/base16-atlas.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Atlas scheme by Alex Lende (https://ajlende.com) + +function base16-atlas -d "Atlas" + set color00 00/26/35 # Base 00 - Black + set color01 ff/5a/67 # Base 08 - Red + set color02 7f/c0/6e # Base 0B - Green + set color03 ff/cc/1b # Base 0A - Yellow + set color04 5d/d7/b9 # Base 0D - Blue + set color05 9a/70/a4 # Base 0E - Magenta + set color06 14/74/7e # Base 0C - Cyan + set color07 a1/a1/9a # Base 05 - White + set color08 6C/8B/91 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fa/fa/f8 # Base 07 - Bright White + set color16 f0/8e/48 # Base 09 + set color17 c4/30/60 # Base 0F + set color18 00/38/4d # Base 01 + set color19 51/7F/8D # Base 02 + set color20 86/96/96 # Base 04 + set color21 e6/e6/dc # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a1a19a # foreground + put_template_custom Ph 002635 # background + put_template_custom Pi a1a19a # bold color + put_template_custom Pj 517F8D # selection color + put_template_custom Pk a1a19a # selected text color + put_template_custom Pl a1a19a # cursor + put_template_custom Pm 002635 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 517F8D + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 517F8D + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 869696 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=517F8D + set -U fish_color_selection white --bold --background=517F8D + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme atlas + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-bespin.fish b/fish/functions/base16-bespin.fish new file mode 100644 index 0000000..2af3f2d --- /dev/null +++ b/fish/functions/base16-bespin.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Bespin scheme by Jan T. Sott + +function base16-bespin -d "Bespin" + set color00 28/21/1c # Base 00 - Black + set color01 cf/6a/4c # Base 08 - Red + set color02 54/be/0d # Base 0B - Green + set color03 f9/ee/98 # Base 0A - Yellow + set color04 5e/a6/ea # Base 0D - Blue + set color05 9b/85/9d # Base 0E - Magenta + set color06 af/c4/db # Base 0C - Cyan + set color07 8a/89/86 # Base 05 - White + set color08 66/66/66 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ba/ae/9e # Base 07 - Bright White + set color16 cf/7d/34 # Base 09 + set color17 93/71/21 # Base 0F + set color18 36/31/2e # Base 01 + set color19 5e/5d/5c # Base 02 + set color20 79/79/77 # Base 04 + set color21 9d/9b/97 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 8a8986 # foreground + put_template_custom Ph 28211c # background + put_template_custom Pi 8a8986 # bold color + put_template_custom Pj 5e5d5c # selection color + put_template_custom Pk 8a8986 # selected text color + put_template_custom Pl 8a8986 # cursor + put_template_custom Pm 28211c # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5e5d5c + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5e5d5c + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 797977 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5e5d5c + set -U fish_color_selection white --bold --background=5e5d5c + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme bespin + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-bathory.fish b/fish/functions/base16-black-metal-bathory.fish new file mode 100644 index 0000000..79f1ef0 --- /dev/null +++ b/fish/functions/base16-black-metal-bathory.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Bathory) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-bathory -d "Black Metal (Bathory)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 fb/cb/97 # Base 0B - Green + set color03 e7/8a/53 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-bathory + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-burzum.fish b/fish/functions/base16-black-metal-burzum.fish new file mode 100644 index 0000000..0d81365 --- /dev/null +++ b/fish/functions/base16-black-metal-burzum.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Burzum) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-burzum -d "Black Metal (Burzum)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 dd/ee/cc # Base 0B - Green + set color03 99/bb/aa # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-burzum + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-dark-funeral.fish b/fish/functions/base16-black-metal-dark-funeral.fish new file mode 100644 index 0000000..cf1f553 --- /dev/null +++ b/fish/functions/base16-black-metal-dark-funeral.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Dark Funeral) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-dark-funeral -d "Black Metal (Dark Funeral)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 d0/df/ee # Base 0B - Green + set color03 5f/81/a5 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-dark-funeral + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-gorgoroth.fish b/fish/functions/base16-black-metal-gorgoroth.fish new file mode 100644 index 0000000..532c39d --- /dev/null +++ b/fish/functions/base16-black-metal-gorgoroth.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Gorgoroth) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-gorgoroth -d "Black Metal (Gorgoroth)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 9b/8d/7f # Base 0B - Green + set color03 8c/7f/70 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-gorgoroth + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-immortal.fish b/fish/functions/base16-black-metal-immortal.fish new file mode 100644 index 0000000..6461816 --- /dev/null +++ b/fish/functions/base16-black-metal-immortal.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Immortal) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-immortal -d "Black Metal (Immortal)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 77/99/bb # Base 0B - Green + set color03 55/66/77 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-immortal + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-khold.fish b/fish/functions/base16-black-metal-khold.fish new file mode 100644 index 0000000..509eb17 --- /dev/null +++ b/fish/functions/base16-black-metal-khold.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Khold) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-khold -d "Black Metal (Khold)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 ec/ee/e3 # Base 0B - Green + set color03 97/4b/46 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-khold + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-marduk.fish b/fish/functions/base16-black-metal-marduk.fish new file mode 100644 index 0000000..ede9c13 --- /dev/null +++ b/fish/functions/base16-black-metal-marduk.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Marduk) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-marduk -d "Black Metal (Marduk)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 a5/aa/a7 # Base 0B - Green + set color03 62/6b/67 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-marduk + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-mayhem.fish b/fish/functions/base16-black-metal-mayhem.fish new file mode 100644 index 0000000..df8adbf --- /dev/null +++ b/fish/functions/base16-black-metal-mayhem.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Mayhem) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-mayhem -d "Black Metal (Mayhem)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 f3/ec/d4 # Base 0B - Green + set color03 ee/cc/6c # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-mayhem + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-nile.fish b/fish/functions/base16-black-metal-nile.fish new file mode 100644 index 0000000..f48a30d --- /dev/null +++ b/fish/functions/base16-black-metal-nile.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Nile) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-nile -d "Black Metal (Nile)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 aa/99/88 # Base 0B - Green + set color03 77/77/55 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-nile + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal-venom.fish b/fish/functions/base16-black-metal-venom.fish new file mode 100644 index 0000000..d126aa5 --- /dev/null +++ b/fish/functions/base16-black-metal-venom.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal (Venom) scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal-venom -d "Black Metal (Venom)" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 f8/f7/f2 # Base 0B - Green + set color03 79/24/1f # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal-venom + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-black-metal.fish b/fish/functions/base16-black-metal.fish new file mode 100644 index 0000000..941cda5 --- /dev/null +++ b/fish/functions/base16-black-metal.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Black Metal scheme by metalelf0 (https://github.com/metalelf0) + +function base16-black-metal -d "Black Metal" + set color00 00/00/00 # Base 00 - Black + set color01 5f/87/87 # Base 08 - Red + set color02 dd/99/99 # Base 0B - Green + set color03 a0/66/66 # Base 0A - Yellow + set color04 88/88/88 # Base 0D - Blue + set color05 99/99/99 # Base 0E - Magenta + set color06 aa/aa/aa # Base 0C - Cyan + set color07 c1/c1/c1 # Base 05 - White + set color08 33/33/33 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c1/c1/c1 # Base 07 - Bright White + set color16 aa/aa/aa # Base 09 + set color17 44/44/44 # Base 0F + set color18 12/12/12 # Base 01 + set color19 22/22/22 # Base 02 + set color20 99/99/99 # Base 04 + set color21 99/99/99 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c1c1 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c1c1c1 # bold color + put_template_custom Pj 222222 # selection color + put_template_custom Pk c1c1c1 # selected text color + put_template_custom Pl c1c1c1 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 222222 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 222222 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=222222 + set -U fish_color_selection white --bold --background=222222 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme black-metal + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-brewer.fish b/fish/functions/base16-brewer.fish new file mode 100644 index 0000000..641ddd5 --- /dev/null +++ b/fish/functions/base16-brewer.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Brewer scheme by Timothée Poisot (http://github.com/tpoisot) + +function base16-brewer -d "Brewer" + set color00 0c/0d/0e # Base 00 - Black + set color01 e3/1a/1c # Base 08 - Red + set color02 31/a3/54 # Base 0B - Green + set color03 dc/a0/60 # Base 0A - Yellow + set color04 31/82/bd # Base 0D - Blue + set color05 75/6b/b1 # Base 0E - Magenta + set color06 80/b1/d3 # Base 0C - Cyan + set color07 b7/b8/b9 # Base 05 - White + set color08 73/74/75 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fc/fd/fe # Base 07 - Bright White + set color16 e6/55/0d # Base 09 + set color17 b1/59/28 # Base 0F + set color18 2e/2f/30 # Base 01 + set color19 51/52/53 # Base 02 + set color20 95/96/97 # Base 04 + set color21 da/db/dc # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b7b8b9 # foreground + put_template_custom Ph 0c0d0e # background + put_template_custom Pi b7b8b9 # bold color + put_template_custom Pj 515253 # selection color + put_template_custom Pk b7b8b9 # selected text color + put_template_custom Pl b7b8b9 # cursor + put_template_custom Pm 0c0d0e # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 515253 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 515253 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 959697 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=515253 + set -U fish_color_selection white --bold --background=515253 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme brewer + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-bright.fish b/fish/functions/base16-bright.fish new file mode 100644 index 0000000..ace4385 --- /dev/null +++ b/fish/functions/base16-bright.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Bright scheme by Chris Kempson (http://chriskempson.com) + +function base16-bright -d "Bright" + set color00 00/00/00 # Base 00 - Black + set color01 fb/01/20 # Base 08 - Red + set color02 a1/c6/59 # Base 0B - Green + set color03 fd/a3/31 # Base 0A - Yellow + set color04 6f/b3/d2 # Base 0D - Blue + set color05 d3/81/c3 # Base 0E - Magenta + set color06 76/c7/b7 # Base 0C - Cyan + set color07 e0/e0/e0 # Base 05 - White + set color08 b0/b0/b0 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 fc/6d/24 # Base 09 + set color17 be/64/3c # Base 0F + set color18 30/30/30 # Base 01 + set color19 50/50/50 # Base 02 + set color20 d0/d0/d0 # Base 04 + set color21 f5/f5/f5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e0e0e0 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi e0e0e0 # bold color + put_template_custom Pj 505050 # selection color + put_template_custom Pk e0e0e0 # selected text color + put_template_custom Pl e0e0e0 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 505050 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 505050 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param d0d0d0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=505050 + set -U fish_color_selection white --bold --background=505050 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme bright + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-brogrammer.fish b/fish/functions/base16-brogrammer.fish new file mode 100644 index 0000000..0580683 --- /dev/null +++ b/fish/functions/base16-brogrammer.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Brogrammer scheme by Vik Ramanujam (http://github.com/piggyslasher) + +function base16-brogrammer -d "Brogrammer" + set color00 1f/1f/1f # Base 00 - Black + set color01 d6/db/e5 # Base 08 - Red + set color02 f3/bd/09 # Base 0B - Green + set color03 1d/d3/61 # Base 0A - Yellow + set color04 53/50/b9 # Base 0D - Blue + set color05 0f/7d/db # Base 0E - Magenta + set color06 10/81/d6 # Base 0C - Cyan + set color07 4e/5a/b7 # Base 05 - White + set color08 ec/ba/0f # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 d6/db/e5 # Base 07 - Bright White + set color16 de/35/2e # Base 09 + set color17 ff/ff/ff # Base 0F + set color18 f8/11/18 # Base 01 + set color19 2d/c5/5e # Base 02 + set color20 2a/84/d2 # Base 04 + set color21 10/81/d6 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 4e5ab7 # foreground + put_template_custom Ph 1f1f1f # background + put_template_custom Pi 4e5ab7 # bold color + put_template_custom Pj 2dc55e # selection color + put_template_custom Pk 4e5ab7 # selected text color + put_template_custom Pl 4e5ab7 # cursor + put_template_custom Pm 1f1f1f # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 2dc55e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 2dc55e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 2a84d2 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=2dc55e + set -U fish_color_selection white --bold --background=2dc55e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme brogrammer + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-brushtrees-dark.fish b/fish/functions/base16-brushtrees-dark.fish new file mode 100644 index 0000000..e498b5f --- /dev/null +++ b/fish/functions/base16-brushtrees-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Brush Trees Dark scheme by Abraham White <abelincoln.white@gmail.com> + +function base16-brushtrees-dark -d "Brush Trees Dark" + set color00 48/58/67 # Base 00 - Black + set color01 b3/86/86 # Base 08 - Red + set color02 87/b3/86 # Base 0B - Green + set color03 aa/b3/86 # Base 0A - Yellow + set color04 86/8c/b3 # Base 0D - Blue + set color05 b3/86/b2 # Base 0E - Magenta + set color06 86/b3/b3 # Base 0C - Cyan + set color07 B0/C5/C8 # Base 05 - White + set color08 82/99/A1 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 E3/EF/EF # Base 07 - Bright White + set color16 d8/bb/a2 # Base 09 + set color17 b3/9f/9f # Base 0F + set color18 5A/6D/7A # Base 01 + set color19 6D/82/8E # Base 02 + set color20 98/AF/B5 # Base 04 + set color21 C9/DB/DC # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg B0C5C8 # foreground + put_template_custom Ph 485867 # background + put_template_custom Pi B0C5C8 # bold color + put_template_custom Pj 6D828E # selection color + put_template_custom Pk B0C5C8 # selected text color + put_template_custom Pl B0C5C8 # cursor + put_template_custom Pm 485867 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 6D828E + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 6D828E + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 98AFB5 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=6D828E + set -U fish_color_selection white --bold --background=6D828E + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme brushtrees-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-brushtrees.fish b/fish/functions/base16-brushtrees.fish new file mode 100644 index 0000000..37ea482 --- /dev/null +++ b/fish/functions/base16-brushtrees.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Brush Trees scheme by Abraham White <abelincoln.white@gmail.com> + +function base16-brushtrees -d "Brush Trees" + set color00 E3/EF/EF # Base 00 - Black + set color01 b3/86/86 # Base 08 - Red + set color02 87/b3/86 # Base 0B - Green + set color03 aa/b3/86 # Base 0A - Yellow + set color04 86/8c/b3 # Base 0D - Blue + set color05 b3/86/b2 # Base 0E - Magenta + set color06 86/b3/b3 # Base 0C - Cyan + set color07 6D/82/8E # Base 05 - White + set color08 98/AF/B5 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 48/58/67 # Base 07 - Bright White + set color16 d8/bb/a2 # Base 09 + set color17 b3/9f/9f # Base 0F + set color18 C9/DB/DC # Base 01 + set color19 B0/C5/C8 # Base 02 + set color20 82/99/A1 # Base 04 + set color21 5A/6D/7A # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 6D828E # foreground + put_template_custom Ph E3EFEF # background + put_template_custom Pi 6D828E # bold color + put_template_custom Pj B0C5C8 # selection color + put_template_custom Pk 6D828E # selected text color + put_template_custom Pl 6D828E # cursor + put_template_custom Pm E3EFEF # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion B0C5C8 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment B0C5C8 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 8299A1 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=B0C5C8 + set -U fish_color_selection white --bold --background=B0C5C8 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme brushtrees + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-chalk.fish b/fish/functions/base16-chalk.fish new file mode 100644 index 0000000..7492799 --- /dev/null +++ b/fish/functions/base16-chalk.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Chalk scheme by Chris Kempson (http://chriskempson.com) + +function base16-chalk -d "Chalk" + set color00 15/15/15 # Base 00 - Black + set color01 fb/9f/b1 # Base 08 - Red + set color02 ac/c2/67 # Base 0B - Green + set color03 dd/b2/6f # Base 0A - Yellow + set color04 6f/c2/ef # Base 0D - Blue + set color05 e1/a3/ee # Base 0E - Magenta + set color06 12/cf/c0 # Base 0C - Cyan + set color07 d0/d0/d0 # Base 05 - White + set color08 50/50/50 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f5/f5/f5 # Base 07 - Bright White + set color16 ed/a9/87 # Base 09 + set color17 de/af/8f # Base 0F + set color18 20/20/20 # Base 01 + set color19 30/30/30 # Base 02 + set color20 b0/b0/b0 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d0d0d0 # foreground + put_template_custom Ph 151515 # background + put_template_custom Pi d0d0d0 # bold color + put_template_custom Pj 303030 # selection color + put_template_custom Pk d0d0d0 # selected text color + put_template_custom Pl d0d0d0 # cursor + put_template_custom Pm 151515 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 303030 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 303030 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b0b0b0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=303030 + set -U fish_color_selection white --bold --background=303030 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme chalk + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-circus.fish b/fish/functions/base16-circus.fish new file mode 100644 index 0000000..3522279 --- /dev/null +++ b/fish/functions/base16-circus.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Circus scheme by Stephan Boyer (https://github.com/stepchowfun) and Esther Wang (https://github.com/ewang12) + +function base16-circus -d "Circus" + set color00 19/19/19 # Base 00 - Black + set color01 dc/65/7d # Base 08 - Red + set color02 84/b9/7c # Base 0B - Green + set color03 c3/ba/63 # Base 0A - Yellow + set color04 63/9e/e4 # Base 0D - Blue + set color05 b8/88/e2 # Base 0E - Magenta + set color06 4b/b1/a7 # Base 0C - Cyan + set color07 a7/a7/a7 # Base 05 - White + set color08 5f/5a/60 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 4b/b1/a7 # Base 09 + set color17 b8/88/e2 # Base 0F + set color18 20/20/20 # Base 01 + set color19 30/30/30 # Base 02 + set color20 50/50/50 # Base 04 + set color21 80/80/80 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a7a7a7 # foreground + put_template_custom Ph 191919 # background + put_template_custom Pi a7a7a7 # bold color + put_template_custom Pj 303030 # selection color + put_template_custom Pk a7a7a7 # selected text color + put_template_custom Pl a7a7a7 # cursor + put_template_custom Pm 191919 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 303030 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 303030 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 505050 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=303030 + set -U fish_color_selection white --bold --background=303030 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme circus + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-classic-dark.fish b/fish/functions/base16-classic-dark.fish new file mode 100644 index 0000000..f018b98 --- /dev/null +++ b/fish/functions/base16-classic-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Classic Dark scheme by Jason Heeris (http://heeris.id.au) + +function base16-classic-dark -d "Classic Dark" + set color00 15/15/15 # Base 00 - Black + set color01 AC/41/42 # Base 08 - Red + set color02 90/A9/59 # Base 0B - Green + set color03 F4/BF/75 # Base 0A - Yellow + set color04 6A/9F/B5 # Base 0D - Blue + set color05 AA/75/9F # Base 0E - Magenta + set color06 75/B5/AA # Base 0C - Cyan + set color07 D0/D0/D0 # Base 05 - White + set color08 50/50/50 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 F5/F5/F5 # Base 07 - Bright White + set color16 D2/84/45 # Base 09 + set color17 8F/55/36 # Base 0F + set color18 20/20/20 # Base 01 + set color19 30/30/30 # Base 02 + set color20 B0/B0/B0 # Base 04 + set color21 E0/E0/E0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg D0D0D0 # foreground + put_template_custom Ph 151515 # background + put_template_custom Pi D0D0D0 # bold color + put_template_custom Pj 303030 # selection color + put_template_custom Pk D0D0D0 # selected text color + put_template_custom Pl D0D0D0 # cursor + put_template_custom Pm 151515 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 303030 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 303030 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param B0B0B0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=303030 + set -U fish_color_selection white --bold --background=303030 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme classic-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-classic-light.fish b/fish/functions/base16-classic-light.fish new file mode 100644 index 0000000..2cd385a --- /dev/null +++ b/fish/functions/base16-classic-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Classic Light scheme by Jason Heeris (http://heeris.id.au) + +function base16-classic-light -d "Classic Light" + set color00 F5/F5/F5 # Base 00 - Black + set color01 AC/41/42 # Base 08 - Red + set color02 90/A9/59 # Base 0B - Green + set color03 F4/BF/75 # Base 0A - Yellow + set color04 6A/9F/B5 # Base 0D - Blue + set color05 AA/75/9F # Base 0E - Magenta + set color06 75/B5/AA # Base 0C - Cyan + set color07 30/30/30 # Base 05 - White + set color08 B0/B0/B0 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 15/15/15 # Base 07 - Bright White + set color16 D2/84/45 # Base 09 + set color17 8F/55/36 # Base 0F + set color18 E0/E0/E0 # Base 01 + set color19 D0/D0/D0 # Base 02 + set color20 50/50/50 # Base 04 + set color21 20/20/20 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 303030 # foreground + put_template_custom Ph F5F5F5 # background + put_template_custom Pi 303030 # bold color + put_template_custom Pj D0D0D0 # selection color + put_template_custom Pk 303030 # selected text color + put_template_custom Pl 303030 # cursor + put_template_custom Pm F5F5F5 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion D0D0D0 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment D0D0D0 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 505050 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=D0D0D0 + set -U fish_color_selection white --bold --background=D0D0D0 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme classic-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-codeschool.fish b/fish/functions/base16-codeschool.fish new file mode 100644 index 0000000..e05e17d --- /dev/null +++ b/fish/functions/base16-codeschool.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Codeschool scheme by blockloop + +function base16-codeschool -d "Codeschool" + set color00 23/2c/31 # Base 00 - Black + set color01 2a/54/91 # Base 08 - Red + set color02 23/79/86 # Base 0B - Green + set color03 a0/3b/1e # Base 0A - Yellow + set color04 48/4d/79 # Base 0D - Blue + set color05 c5/98/20 # Base 0E - Magenta + set color06 b0/2f/30 # Base 0C - Cyan + set color07 9e/a7/a6 # Base 05 - White + set color08 3f/49/44 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 b5/d8/f6 # Base 07 - Bright White + set color16 43/82/0d # Base 09 + set color17 c9/83/44 # Base 0F + set color18 1c/36/57 # Base 01 + set color19 2a/34/3a # Base 02 + set color20 84/89/8c # Base 04 + set color21 a7/cf/a3 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 9ea7a6 # foreground + put_template_custom Ph 232c31 # background + put_template_custom Pi 9ea7a6 # bold color + put_template_custom Pj 2a343a # selection color + put_template_custom Pk 9ea7a6 # selected text color + put_template_custom Pl 9ea7a6 # cursor + put_template_custom Pm 232c31 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 2a343a + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 2a343a + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 84898c + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=2a343a + set -U fish_color_selection white --bold --background=2a343a + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme codeschool + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-colors.fish b/fish/functions/base16-colors.fish new file mode 100644 index 0000000..d08ae10 --- /dev/null +++ b/fish/functions/base16-colors.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Colors scheme by mrmrs (http://clrs.cc) + +function base16-colors -d "Colors" + set color00 11/11/11 # Base 00 - Black + set color01 ff/41/36 # Base 08 - Red + set color02 2e/cc/40 # Base 0B - Green + set color03 ff/dc/00 # Base 0A - Yellow + set color04 00/74/d9 # Base 0D - Blue + set color05 b1/0d/c9 # Base 0E - Magenta + set color06 7f/db/ff # Base 0C - Cyan + set color07 bb/bb/bb # Base 05 - White + set color08 77/77/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/85/1b # Base 09 + set color17 85/14/4b # Base 0F + set color18 33/33/33 # Base 01 + set color19 55/55/55 # Base 02 + set color20 99/99/99 # Base 04 + set color21 dd/dd/dd # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg bbbbbb # foreground + put_template_custom Ph 111111 # background + put_template_custom Pi bbbbbb # bold color + put_template_custom Pj 555555 # selection color + put_template_custom Pk bbbbbb # selected text color + put_template_custom Pl bbbbbb # cursor + put_template_custom Pm 111111 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 555555 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 555555 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 999999 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=555555 + set -U fish_color_selection white --bold --background=555555 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme colors + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-cupcake.fish b/fish/functions/base16-cupcake.fish new file mode 100644 index 0000000..4ad0996 --- /dev/null +++ b/fish/functions/base16-cupcake.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Cupcake scheme by Chris Kempson (http://chriskempson.com) + +function base16-cupcake -d "Cupcake" + set color00 fb/f1/f2 # Base 00 - Black + set color01 D5/7E/85 # Base 08 - Red + set color02 A3/B3/67 # Base 0B - Green + set color03 DC/B1/6C # Base 0A - Yellow + set color04 72/97/B9 # Base 0D - Blue + set color05 BB/99/B4 # Base 0E - Magenta + set color06 69/A9/A7 # Base 0C - Cyan + set color07 8b/81/98 # Base 05 - White + set color08 bf/b9/c6 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 58/50/62 # Base 07 - Bright White + set color16 EB/B7/90 # Base 09 + set color17 BA/A5/8C # Base 0F + set color18 f2/f1/f4 # Base 01 + set color19 d8/d5/dd # Base 02 + set color20 a5/9d/af # Base 04 + set color21 72/67/7E # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 8b8198 # foreground + put_template_custom Ph fbf1f2 # background + put_template_custom Pi 8b8198 # bold color + put_template_custom Pj d8d5dd # selection color + put_template_custom Pk 8b8198 # selected text color + put_template_custom Pl 8b8198 # cursor + put_template_custom Pm fbf1f2 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d8d5dd + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d8d5dd + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a59daf + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d8d5dd + set -U fish_color_selection white --bold --background=d8d5dd + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme cupcake + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-cupertino.fish b/fish/functions/base16-cupertino.fish new file mode 100644 index 0000000..955aaaa --- /dev/null +++ b/fish/functions/base16-cupertino.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Cupertino scheme by Defman21 + +function base16-cupertino -d "Cupertino" + set color00 ff/ff/ff # Base 00 - Black + set color01 c4/1a/15 # Base 08 - Red + set color02 00/74/00 # Base 0B - Green + set color03 82/6b/28 # Base 0A - Yellow + set color04 00/00/ff # Base 0D - Blue + set color05 a9/0d/91 # Base 0E - Magenta + set color06 31/84/95 # Base 0C - Cyan + set color07 40/40/40 # Base 05 - White + set color08 80/80/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 5e/5e/5e # Base 07 - Bright White + set color16 eb/85/00 # Base 09 + set color17 82/6b/28 # Base 0F + set color18 c0/c0/c0 # Base 01 + set color19 c0/c0/c0 # Base 02 + set color20 80/80/80 # Base 04 + set color21 40/40/40 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 404040 # foreground + put_template_custom Ph ffffff # background + put_template_custom Pi 404040 # bold color + put_template_custom Pj c0c0c0 # selection color + put_template_custom Pk 404040 # selected text color + put_template_custom Pl 404040 # cursor + put_template_custom Pm ffffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion c0c0c0 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment c0c0c0 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 808080 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=c0c0c0 + set -U fish_color_selection white --bold --background=c0c0c0 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme cupertino + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-danqing.fish b/fish/functions/base16-danqing.fish new file mode 100644 index 0000000..d841da4 --- /dev/null +++ b/fish/functions/base16-danqing.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# DanQing scheme by Wenhan Zhu (Cosmos) (zhuwenhan950913@gmail.com) + +function base16-danqing -d "DanQing" + set color00 2d/30/2f # Base 00 - Black + set color01 F9/90/6F # Base 08 - Red + set color02 8A/B3/61 # Base 0B - Green + set color03 F0/C2/39 # Base 0A - Yellow + set color04 B0/A4/E3 # Base 0D - Blue + set color05 CC/A4/E3 # Base 0E - Magenta + set color06 30/DF/F3 # Base 0C - Cyan + set color07 e0/f0/eF # Base 05 - White + set color08 9d/a8/a3 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fc/fe/fd # Base 07 - Bright White + set color16 B3/8A/61 # Base 09 + set color17 CA/69/24 # Base 0F + set color18 43/48/46 # Base 01 + set color19 5a/60/5d # Base 02 + set color20 ca/d8/d2 # Base 04 + set color21 ec/f6/f2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e0f0eF # foreground + put_template_custom Ph 2d302f # background + put_template_custom Pi e0f0eF # bold color + put_template_custom Pj 5a605d # selection color + put_template_custom Pk e0f0eF # selected text color + put_template_custom Pl e0f0eF # cursor + put_template_custom Pm 2d302f # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5a605d + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5a605d + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param cad8d2 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5a605d + set -U fish_color_selection white --bold --background=5a605d + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme danqing + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-darcula.fish b/fish/functions/base16-darcula.fish new file mode 100644 index 0000000..9ee4d86 --- /dev/null +++ b/fish/functions/base16-darcula.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Darcula scheme by jetbrains + +function base16-darcula -d "Darcula" + set color00 2b/2b/2b # Base 00 - Black + set color01 4e/ad/e5 # Base 08 - Red + set color02 6a/87/59 # Base 0B - Green + set color03 bb/b5/29 # Base 0A - Yellow + set color04 98/76/aa # Base 0D - Blue + set color05 cc/78/32 # Base 0E - Magenta + set color06 62/97/55 # Base 0C - Cyan + set color07 a9/b7/c6 # Base 05 - White + set color08 60/63/66 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 68/97/57 # Base 09 + set color17 80/80/80 # Base 0F + set color18 32/32/32 # Base 01 + set color19 32/32/32 # Base 02 + set color20 a4/a3/a3 # Base 04 + set color21 ff/c6/6d # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a9b7c6 # foreground + put_template_custom Ph 2b2b2b # background + put_template_custom Pi a9b7c6 # bold color + put_template_custom Pj 323232 # selection color + put_template_custom Pk a9b7c6 # selected text color + put_template_custom Pl a9b7c6 # cursor + put_template_custom Pm 2b2b2b # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 323232 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 323232 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a4a3a3 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=323232 + set -U fish_color_selection white --bold --background=323232 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme darcula + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-darkmoss.fish b/fish/functions/base16-darkmoss.fish new file mode 100644 index 0000000..35df9b8 --- /dev/null +++ b/fish/functions/base16-darkmoss.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# darkmoss scheme by Gabriel Avanzi (https://github.com/avanzzzi) + +function base16-darkmoss -d "darkmoss" + set color00 17/1e/1f # Base 00 - Black + set color01 ff/46/58 # Base 08 - Red + set color02 49/91/80 # Base 0B - Green + set color03 fd/b1/1f # Base 0A - Yellow + set color04 49/80/91 # Base 0D - Blue + set color05 9b/c0/c8 # Base 0E - Magenta + set color06 66/d9/ef # Base 0C - Cyan + set color07 c7/c7/a5 # Base 05 - White + set color08 55/5e/5f # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 e1/ea/ef # Base 07 - Bright White + set color16 e6/db/74 # Base 09 + set color17 d2/7b/53 # Base 0F + set color18 25/2c/2d # Base 01 + set color19 37/3c/3d # Base 02 + set color20 81/8f/80 # Base 04 + set color21 e3/e3/c8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c7c7a5 # foreground + put_template_custom Ph 171e1f # background + put_template_custom Pi c7c7a5 # bold color + put_template_custom Pj 373c3d # selection color + put_template_custom Pk c7c7a5 # selected text color + put_template_custom Pl c7c7a5 # cursor + put_template_custom Pm 171e1f # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 373c3d + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 373c3d + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 818f80 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=373c3d + set -U fish_color_selection white --bold --background=373c3d + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme darkmoss + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-darktooth.fish b/fish/functions/base16-darktooth.fish new file mode 100644 index 0000000..f817366 --- /dev/null +++ b/fish/functions/base16-darktooth.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Darktooth scheme by Jason Milkins (https://github.com/jasonm23) + +function base16-darktooth -d "Darktooth" + set color00 1D/20/21 # Base 00 - Black + set color01 FB/54/3F # Base 08 - Red + set color02 95/C0/85 # Base 0B - Green + set color03 FA/C0/3B # Base 0A - Yellow + set color04 0D/66/78 # Base 0D - Blue + set color05 8F/46/73 # Base 0E - Magenta + set color06 8B/A5/9B # Base 0C - Cyan + set color07 A8/99/84 # Base 05 - White + set color08 66/5C/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FD/F4/C1 # Base 07 - Bright White + set color16 FE/86/25 # Base 09 + set color17 A8/73/22 # Base 0F + set color18 32/30/2F # Base 01 + set color19 50/49/45 # Base 02 + set color20 92/83/74 # Base 04 + set color21 D5/C4/A1 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg A89984 # foreground + put_template_custom Ph 1D2021 # background + put_template_custom Pi A89984 # bold color + put_template_custom Pj 504945 # selection color + put_template_custom Pk A89984 # selected text color + put_template_custom Pl A89984 # cursor + put_template_custom Pm 1D2021 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 504945 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 504945 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 928374 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=504945 + set -U fish_color_selection white --bold --background=504945 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme darktooth + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-darkviolet.fish b/fish/functions/base16-darkviolet.fish new file mode 100644 index 0000000..2ff30fc --- /dev/null +++ b/fish/functions/base16-darkviolet.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Dark Violet scheme by ruler501 (https://github.com/ruler501/base16-darkviolet) + +function base16-darkviolet -d "Dark Violet" + set color00 00/00/00 # Base 00 - Black + set color01 a8/2e/e6 # Base 08 - Red + set color02 45/95/e6 # Base 0B - Green + set color03 f2/9d/f2 # Base 0A - Yellow + set color04 41/36/d9 # Base 0D - Blue + set color05 7e/5c/e6 # Base 0E - Magenta + set color06 40/df/ff # Base 0C - Cyan + set color07 b0/8a/e6 # Base 05 - White + set color08 59/33/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 a3/66/ff # Base 07 - Bright White + set color16 bb/66/cc # Base 09 + set color17 a8/86/bf # Base 0F + set color18 23/1a/40 # Base 01 + set color19 43/2d/59 # Base 02 + set color20 00/ff/00 # Base 04 + set color21 90/45/e6 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b08ae6 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi b08ae6 # bold color + put_template_custom Pj 432d59 # selection color + put_template_custom Pk b08ae6 # selected text color + put_template_custom Pl b08ae6 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 432d59 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 432d59 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 00ff00 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=432d59 + set -U fish_color_selection white --bold --background=432d59 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme darkviolet + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-decaf.fish b/fish/functions/base16-decaf.fish new file mode 100644 index 0000000..d4b8d96 --- /dev/null +++ b/fish/functions/base16-decaf.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Decaf scheme by Alex Mirrington (https://github.com/alexmirrington) + +function base16-decaf -d "Decaf" + set color00 2d/2d/2d # Base 00 - Black + set color01 ff/7f/7b # Base 08 - Red + set color02 be/da/78 # Base 0B - Green + set color03 ff/d6/7c # Base 0A - Yellow + set color04 90/be/e1 # Base 0D - Blue + set color05 ef/b3/f7 # Base 0E - Magenta + set color06 be/d6/ff # Base 0C - Cyan + set color07 cc/cc/cc # Base 05 - White + set color08 77/77/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/bf/70 # Base 09 + set color17 ff/93/b3 # Base 0F + set color18 39/39/39 # Base 01 + set color19 51/51/51 # Base 02 + set color20 b4/b7/b4 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cccccc # foreground + put_template_custom Ph 2d2d2d # background + put_template_custom Pi cccccc # bold color + put_template_custom Pj 515151 # selection color + put_template_custom Pk cccccc # selected text color + put_template_custom Pl cccccc # cursor + put_template_custom Pm 2d2d2d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 515151 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 515151 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b4b7b4 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=515151 + set -U fish_color_selection white --bold --background=515151 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme decaf + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-default-dark.fish b/fish/functions/base16-default-dark.fish new file mode 100644 index 0000000..8c0d760 --- /dev/null +++ b/fish/functions/base16-default-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Default Dark scheme by Chris Kempson (http://chriskempson.com) + +function base16-default-dark -d "Default Dark" + set color00 18/18/18 # Base 00 - Black + set color01 ab/46/42 # Base 08 - Red + set color02 a1/b5/6c # Base 0B - Green + set color03 f7/ca/88 # Base 0A - Yellow + set color04 7c/af/c2 # Base 0D - Blue + set color05 ba/8b/af # Base 0E - Magenta + set color06 86/c1/b9 # Base 0C - Cyan + set color07 d8/d8/d8 # Base 05 - White + set color08 58/58/58 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/f8/f8 # Base 07 - Bright White + set color16 dc/96/56 # Base 09 + set color17 a1/69/46 # Base 0F + set color18 28/28/28 # Base 01 + set color19 38/38/38 # Base 02 + set color20 b8/b8/b8 # Base 04 + set color21 e8/e8/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d8d8d8 # foreground + put_template_custom Ph 181818 # background + put_template_custom Pi d8d8d8 # bold color + put_template_custom Pj 383838 # selection color + put_template_custom Pk d8d8d8 # selected text color + put_template_custom Pl d8d8d8 # cursor + put_template_custom Pm 181818 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 383838 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 383838 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b8b8b8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=383838 + set -U fish_color_selection white --bold --background=383838 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme default-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-default-light.fish b/fish/functions/base16-default-light.fish new file mode 100644 index 0000000..019c1d6 --- /dev/null +++ b/fish/functions/base16-default-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Default Light scheme by Chris Kempson (http://chriskempson.com) + +function base16-default-light -d "Default Light" + set color00 f8/f8/f8 # Base 00 - Black + set color01 ab/46/42 # Base 08 - Red + set color02 a1/b5/6c # Base 0B - Green + set color03 f7/ca/88 # Base 0A - Yellow + set color04 7c/af/c2 # Base 0D - Blue + set color05 ba/8b/af # Base 0E - Magenta + set color06 86/c1/b9 # Base 0C - Cyan + set color07 38/38/38 # Base 05 - White + set color08 b8/b8/b8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 18/18/18 # Base 07 - Bright White + set color16 dc/96/56 # Base 09 + set color17 a1/69/46 # Base 0F + set color18 e8/e8/e8 # Base 01 + set color19 d8/d8/d8 # Base 02 + set color20 58/58/58 # Base 04 + set color21 28/28/28 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 383838 # foreground + put_template_custom Ph f8f8f8 # background + put_template_custom Pi 383838 # bold color + put_template_custom Pj d8d8d8 # selection color + put_template_custom Pk 383838 # selected text color + put_template_custom Pl 383838 # cursor + put_template_custom Pm f8f8f8 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d8d8d8 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d8d8d8 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 585858 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d8d8d8 + set -U fish_color_selection white --bold --background=d8d8d8 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme default-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-dirtysea.fish b/fish/functions/base16-dirtysea.fish new file mode 100644 index 0000000..b0dfd0f --- /dev/null +++ b/fish/functions/base16-dirtysea.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# dirtysea scheme by Kahlil (Kal) Hodgson + +function base16-dirtysea -d "dirtysea" + set color00 e0/e0/e0 # Base 00 - Black + set color01 84/00/00 # Base 08 - Red + set color02 73/00/73 # Base 0B - Green + set color03 75/5B/00 # Base 0A - Yellow + set color04 00/73/00 # Base 0D - Blue + set color05 00/00/90 # Base 0E - Magenta + set color06 75/5B/00 # Base 0C - Cyan + set color07 00/00/00 # Base 05 - White + set color08 70/70/70 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c4/d9/c4 # Base 07 - Bright White + set color16 00/65/65 # Base 09 + set color17 75/5B/00 # Base 0F + set color18 d0/da/d0 # Base 01 + set color19 d0/d0/d0 # Base 02 + set color20 20/20/20 # Base 04 + set color21 f8/f8/f8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 000000 # foreground + put_template_custom Ph e0e0e0 # background + put_template_custom Pi 000000 # bold color + put_template_custom Pj d0d0d0 # selection color + put_template_custom Pk 000000 # selected text color + put_template_custom Pl 000000 # cursor + put_template_custom Pm e0e0e0 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d0d0d0 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d0d0d0 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 202020 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d0d0d0 + set -U fish_color_selection white --bold --background=d0d0d0 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme dirtysea + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-dracula.fish b/fish/functions/base16-dracula.fish new file mode 100644 index 0000000..8615aa6 --- /dev/null +++ b/fish/functions/base16-dracula.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Dracula scheme by Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula) + +function base16-dracula -d "Dracula" + set color00 28/29/36 # Base 00 - Black + set color01 ea/51/b2 # Base 08 - Red + set color02 eb/ff/87 # Base 0B - Green + set color03 00/f7/69 # Base 0A - Yellow + set color04 62/d6/e8 # Base 0D - Blue + set color05 b4/5b/cf # Base 0E - Magenta + set color06 a1/ef/e4 # Base 0C - Cyan + set color07 e9/e9/f4 # Base 05 - White + set color08 62/64/83 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f7/f7/fb # Base 07 - Bright White + set color16 b4/5b/cf # Base 09 + set color17 00/f7/69 # Base 0F + set color18 3a/3c/4e # Base 01 + set color19 4d/4f/68 # Base 02 + set color20 62/d6/e8 # Base 04 + set color21 f1/f2/f8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e9e9f4 # foreground + put_template_custom Ph 282936 # background + put_template_custom Pi e9e9f4 # bold color + put_template_custom Pj 4d4f68 # selection color + put_template_custom Pk e9e9f4 # selected text color + put_template_custom Pl e9e9f4 # cursor + put_template_custom Pm 282936 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4d4f68 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4d4f68 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 62d6e8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4d4f68 + set -U fish_color_selection white --bold --background=4d4f68 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme dracula + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-edge-dark.fish b/fish/functions/base16-edge-dark.fish new file mode 100644 index 0000000..7e15872 --- /dev/null +++ b/fish/functions/base16-edge-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Edge Dark scheme by cjayross (https://github.com/cjayross) + +function base16-edge-dark -d "Edge Dark" + set color00 26/27/29 # Base 00 - Black + set color01 e7/71/71 # Base 08 - Red + set color02 a1/bf/78 # Base 0B - Green + set color03 db/b7/74 # Base 0A - Yellow + set color04 73/b3/e7 # Base 0D - Blue + set color05 d3/90/e7 # Base 0E - Magenta + set color06 5e/ba/a5 # Base 0C - Cyan + set color07 b7/be/c9 # Base 05 - White + set color08 3e/42/49 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 3e/42/49 # Base 07 - Bright White + set color16 e7/71/71 # Base 09 + set color17 5e/ba/a5 # Base 0F + set color18 88/90/9f # Base 01 + set color19 b7/be/c9 # Base 02 + set color20 73/b3/e7 # Base 04 + set color21 d3/90/e7 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b7bec9 # foreground + put_template_custom Ph 262729 # background + put_template_custom Pi b7bec9 # bold color + put_template_custom Pj b7bec9 # selection color + put_template_custom Pk b7bec9 # selected text color + put_template_custom Pl b7bec9 # cursor + put_template_custom Pm 262729 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion b7bec9 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment b7bec9 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 73b3e7 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=b7bec9 + set -U fish_color_selection white --bold --background=b7bec9 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme edge-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-edge-light.fish b/fish/functions/base16-edge-light.fish new file mode 100644 index 0000000..c740f8f --- /dev/null +++ b/fish/functions/base16-edge-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Edge Light scheme by cjayross (https://github.com/cjayross) + +function base16-edge-light -d "Edge Light" + set color00 fa/fa/fa # Base 00 - Black + set color01 db/70/70 # Base 08 - Red + set color02 7c/9f/4b # Base 0B - Green + set color03 d6/98/22 # Base 0A - Yellow + set color04 65/87/bf # Base 0D - Blue + set color05 b8/70/ce # Base 0E - Magenta + set color06 50/9c/93 # Base 0C - Cyan + set color07 5e/64/6f # Base 05 - White + set color08 5e/64/6f # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 5e/64/6f # Base 07 - Bright White + set color16 db/70/70 # Base 09 + set color17 50/9c/93 # Base 0F + set color18 7c/9f/4b # Base 01 + set color19 d6/98/22 # Base 02 + set color20 65/87/bf # Base 04 + set color21 b8/70/ce # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5e646f # foreground + put_template_custom Ph fafafa # background + put_template_custom Pi 5e646f # bold color + put_template_custom Pj d69822 # selection color + put_template_custom Pk 5e646f # selected text color + put_template_custom Pl 5e646f # cursor + put_template_custom Pm fafafa # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d69822 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d69822 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6587bf + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d69822 + set -U fish_color_selection white --bold --background=d69822 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme edge-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-eighties.fish b/fish/functions/base16-eighties.fish new file mode 100644 index 0000000..7678990 --- /dev/null +++ b/fish/functions/base16-eighties.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Eighties scheme by Chris Kempson (http://chriskempson.com) + +function base16-eighties -d "Eighties" + set color00 2d/2d/2d # Base 00 - Black + set color01 f2/77/7a # Base 08 - Red + set color02 99/cc/99 # Base 0B - Green + set color03 ff/cc/66 # Base 0A - Yellow + set color04 66/99/cc # Base 0D - Blue + set color05 cc/99/cc # Base 0E - Magenta + set color06 66/cc/cc # Base 0C - Cyan + set color07 d3/d0/c8 # Base 05 - White + set color08 74/73/69 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f2/f0/ec # Base 07 - Bright White + set color16 f9/91/57 # Base 09 + set color17 d2/7b/53 # Base 0F + set color18 39/39/39 # Base 01 + set color19 51/51/51 # Base 02 + set color20 a0/9f/93 # Base 04 + set color21 e8/e6/df # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d3d0c8 # foreground + put_template_custom Ph 2d2d2d # background + put_template_custom Pi d3d0c8 # bold color + put_template_custom Pj 515151 # selection color + put_template_custom Pk d3d0c8 # selected text color + put_template_custom Pl d3d0c8 # cursor + put_template_custom Pm 2d2d2d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 515151 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 515151 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a09f93 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=515151 + set -U fish_color_selection white --bold --background=515151 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme eighties + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-embers.fish b/fish/functions/base16-embers.fish new file mode 100644 index 0000000..8ef6a60 --- /dev/null +++ b/fish/functions/base16-embers.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Embers scheme by Jannik Siebert (https://github.com/janniks) + +function base16-embers -d "Embers" + set color00 16/13/0F # Base 00 - Black + set color01 82/6D/57 # Base 08 - Red + set color02 57/82/6D # Base 0B - Green + set color03 6D/82/57 # Base 0A - Yellow + set color04 6D/57/82 # Base 0D - Blue + set color05 82/57/6D # Base 0E - Magenta + set color06 57/6D/82 # Base 0C - Cyan + set color07 A3/9A/90 # Base 05 - White + set color08 5A/50/47 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 DB/D6/D1 # Base 07 - Bright White + set color16 82/82/57 # Base 09 + set color17 82/57/57 # Base 0F + set color18 2C/26/20 # Base 01 + set color19 43/3B/32 # Base 02 + set color20 8A/80/75 # Base 04 + set color21 BE/B6/AE # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg A39A90 # foreground + put_template_custom Ph 16130F # background + put_template_custom Pi A39A90 # bold color + put_template_custom Pj 433B32 # selection color + put_template_custom Pk A39A90 # selected text color + put_template_custom Pl A39A90 # cursor + put_template_custom Pm 16130F # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 433B32 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 433B32 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 8A8075 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=433B32 + set -U fish_color_selection white --bold --background=433B32 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme embers + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-equilibrium-dark.fish b/fish/functions/base16-equilibrium-dark.fish new file mode 100644 index 0000000..3dccc50 --- /dev/null +++ b/fish/functions/base16-equilibrium-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Equilibrium Dark scheme by Carlo Abelli + +function base16-equilibrium-dark -d "Equilibrium Dark" + set color00 0c/11/18 # Base 00 - Black + set color01 f0/43/39 # Base 08 - Red + set color02 7f/8b/00 # Base 0B - Green + set color03 bb/88/01 # Base 0A - Yellow + set color04 00/8d/d1 # Base 0D - Blue + set color05 6a/7f/d2 # Base 0E - Magenta + set color06 00/94/8b # Base 0C - Cyan + set color07 af/ab/a2 # Base 05 - White + set color08 7b/77/6e # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 e7/e2/d9 # Base 07 - Bright White + set color16 df/59/23 # Base 09 + set color17 e3/48/8e # Base 0F + set color18 18/1c/22 # Base 01 + set color19 22/26/2d # Base 02 + set color20 94/90/88 # Base 04 + set color21 ca/c6/bd # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg afaba2 # foreground + put_template_custom Ph 0c1118 # background + put_template_custom Pi afaba2 # bold color + put_template_custom Pj 22262d # selection color + put_template_custom Pk afaba2 # selected text color + put_template_custom Pl afaba2 # cursor + put_template_custom Pm 0c1118 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 22262d + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 22262d + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 949088 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=22262d + set -U fish_color_selection white --bold --background=22262d + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme equilibrium-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-equilibrium-gray-dark.fish b/fish/functions/base16-equilibrium-gray-dark.fish new file mode 100644 index 0000000..1127c57 --- /dev/null +++ b/fish/functions/base16-equilibrium-gray-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Equilibrium Gray Dark scheme by Carlo Abelli + +function base16-equilibrium-gray-dark -d "Equilibrium Gray Dark" + set color00 11/11/11 # Base 00 - Black + set color01 f0/43/39 # Base 08 - Red + set color02 7f/8b/00 # Base 0B - Green + set color03 bb/88/01 # Base 0A - Yellow + set color04 00/8d/d1 # Base 0D - Blue + set color05 6a/7f/d2 # Base 0E - Magenta + set color06 00/94/8b # Base 0C - Cyan + set color07 ab/ab/ab # Base 05 - White + set color08 77/77/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 e2/e2/e2 # Base 07 - Bright White + set color16 df/59/23 # Base 09 + set color17 e3/48/8e # Base 0F + set color18 1b/1b/1b # Base 01 + set color19 26/26/26 # Base 02 + set color20 91/91/91 # Base 04 + set color21 c6/c6/c6 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg ababab # foreground + put_template_custom Ph 111111 # background + put_template_custom Pi ababab # bold color + put_template_custom Pj 262626 # selection color + put_template_custom Pk ababab # selected text color + put_template_custom Pl ababab # cursor + put_template_custom Pm 111111 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 262626 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 262626 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 919191 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=262626 + set -U fish_color_selection white --bold --background=262626 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme equilibrium-gray-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-equilibrium-gray-light.fish b/fish/functions/base16-equilibrium-gray-light.fish new file mode 100644 index 0000000..a86f31a --- /dev/null +++ b/fish/functions/base16-equilibrium-gray-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Equilibrium Gray Light scheme by Carlo Abelli + +function base16-equilibrium-gray-light -d "Equilibrium Gray Light" + set color00 f1/f1/f1 # Base 00 - Black + set color01 d0/20/23 # Base 08 - Red + set color02 63/72/00 # Base 0B - Green + set color03 9d/6f/00 # Base 0A - Yellow + set color04 00/73/b5 # Base 0D - Blue + set color05 4e/66/b6 # Base 0E - Magenta + set color06 00/7a/72 # Base 0C - Cyan + set color07 47/47/47 # Base 05 - White + set color08 77/77/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 1b/1b/1b # Base 07 - Bright White + set color16 bf/3e/05 # Base 09 + set color17 c4/27/75 # Base 0F + set color18 e2/e2/e2 # Base 01 + set color19 d4/d4/d4 # Base 02 + set color20 5e/5e/5e # Base 04 + set color21 30/30/30 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 474747 # foreground + put_template_custom Ph f1f1f1 # background + put_template_custom Pi 474747 # bold color + put_template_custom Pj d4d4d4 # selection color + put_template_custom Pk 474747 # selected text color + put_template_custom Pl 474747 # cursor + put_template_custom Pm f1f1f1 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d4d4d4 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d4d4d4 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5e5e5e + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d4d4d4 + set -U fish_color_selection white --bold --background=d4d4d4 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme equilibrium-gray-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-equilibrium-light.fish b/fish/functions/base16-equilibrium-light.fish new file mode 100644 index 0000000..1cf3e2b --- /dev/null +++ b/fish/functions/base16-equilibrium-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Equilibrium Light scheme by Carlo Abelli + +function base16-equilibrium-light -d "Equilibrium Light" + set color00 f5/f0/e7 # Base 00 - Black + set color01 d0/20/23 # Base 08 - Red + set color02 63/72/00 # Base 0B - Green + set color03 9d/6f/00 # Base 0A - Yellow + set color04 00/73/b5 # Base 0D - Blue + set color05 4e/66/b6 # Base 0E - Magenta + set color06 00/7a/72 # Base 0C - Cyan + set color07 43/47/4e # Base 05 - White + set color08 73/77/7f # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 18/1c/22 # Base 07 - Bright White + set color16 bf/3e/05 # Base 09 + set color17 c4/27/75 # Base 0F + set color18 e7/e2/d9 # Base 01 + set color19 d8/d4/cb # Base 02 + set color20 5a/5f/66 # Base 04 + set color21 2c/31/38 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 43474e # foreground + put_template_custom Ph f5f0e7 # background + put_template_custom Pi 43474e # bold color + put_template_custom Pj d8d4cb # selection color + put_template_custom Pk 43474e # selected text color + put_template_custom Pl 43474e # cursor + put_template_custom Pm f5f0e7 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d8d4cb + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d8d4cb + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5a5f66 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d8d4cb + set -U fish_color_selection white --bold --background=d8d4cb + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme equilibrium-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-espresso.fish b/fish/functions/base16-espresso.fish new file mode 100644 index 0000000..fbc9fa9 --- /dev/null +++ b/fish/functions/base16-espresso.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Espresso scheme by Unknown. Maintained by Alex Mirrington (https://github.com/alexmirrington) + +function base16-espresso -d "Espresso" + set color00 2d/2d/2d # Base 00 - Black + set color01 d2/52/52 # Base 08 - Red + set color02 a5/c2/61 # Base 0B - Green + set color03 ff/c6/6d # Base 0A - Yellow + set color04 6c/99/bb # Base 0D - Blue + set color05 d1/97/d9 # Base 0E - Magenta + set color06 be/d6/ff # Base 0C - Cyan + set color07 cc/cc/cc # Base 05 - White + set color08 77/77/77 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 f9/a9/59 # Base 09 + set color17 f9/73/94 # Base 0F + set color18 39/39/39 # Base 01 + set color19 51/51/51 # Base 02 + set color20 b4/b7/b4 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cccccc # foreground + put_template_custom Ph 2d2d2d # background + put_template_custom Pi cccccc # bold color + put_template_custom Pj 515151 # selection color + put_template_custom Pk cccccc # selected text color + put_template_custom Pl cccccc # cursor + put_template_custom Pm 2d2d2d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 515151 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 515151 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b4b7b4 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=515151 + set -U fish_color_selection white --bold --background=515151 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme espresso + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-eva-dim.fish b/fish/functions/base16-eva-dim.fish new file mode 100644 index 0000000..513f93e --- /dev/null +++ b/fish/functions/base16-eva-dim.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Eva Dim scheme by kjakapat (https://github.com/kjakapat) + +function base16-eva-dim -d "Eva Dim" + set color00 2a/3b/4d # Base 00 - Black + set color01 c4/67/6c # Base 08 - Red + set color02 5d/e5/61 # Base 0B - Green + set color03 cf/d0/5d # Base 0A - Yellow + set color04 1a/e1/dc # Base 0D - Blue + set color05 9c/6c/d3 # Base 0E - Magenta + set color06 4b/8f/77 # Base 0C - Cyan + set color07 9f/a2/a6 # Base 05 - White + set color08 55/79/9c # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/99/66 # Base 09 + set color17 bb/64/a9 # Base 0F + set color18 3d/56/6f # Base 01 + set color19 4b/69/88 # Base 02 + set color20 7e/90/a3 # Base 04 + set color21 d6/d7/d9 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 9fa2a6 # foreground + put_template_custom Ph 2a3b4d # background + put_template_custom Pi 9fa2a6 # bold color + put_template_custom Pj 4b6988 # selection color + put_template_custom Pk 9fa2a6 # selected text color + put_template_custom Pl 9fa2a6 # cursor + put_template_custom Pm 2a3b4d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4b6988 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4b6988 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e90a3 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4b6988 + set -U fish_color_selection white --bold --background=4b6988 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme eva-dim + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-eva.fish b/fish/functions/base16-eva.fish new file mode 100644 index 0000000..0a92927 --- /dev/null +++ b/fish/functions/base16-eva.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Eva scheme by kjakapat (https://github.com/kjakapat) + +function base16-eva -d "Eva" + set color00 2a/3b/4d # Base 00 - Black + set color01 c4/67/6c # Base 08 - Red + set color02 66/ff/66 # Base 0B - Green + set color03 ff/ff/66 # Base 0A - Yellow + set color04 15/f4/ee # Base 0D - Blue + set color05 9c/6c/d3 # Base 0E - Magenta + set color06 4b/8f/77 # Base 0C - Cyan + set color07 9f/a2/a6 # Base 05 - White + set color08 55/79/9c # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/99/66 # Base 09 + set color17 bb/64/a9 # Base 0F + set color18 3d/56/6f # Base 01 + set color19 4b/69/88 # Base 02 + set color20 7e/90/a3 # Base 04 + set color21 d6/d7/d9 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 9fa2a6 # foreground + put_template_custom Ph 2a3b4d # background + put_template_custom Pi 9fa2a6 # bold color + put_template_custom Pj 4b6988 # selection color + put_template_custom Pk 9fa2a6 # selected text color + put_template_custom Pl 9fa2a6 # cursor + put_template_custom Pm 2a3b4d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4b6988 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4b6988 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e90a3 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4b6988 + set -U fish_color_selection white --bold --background=4b6988 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme eva + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-flat.fish b/fish/functions/base16-flat.fish new file mode 100644 index 0000000..a6632eb --- /dev/null +++ b/fish/functions/base16-flat.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Flat scheme by Chris Kempson (http://chriskempson.com) + +function base16-flat -d "Flat" + set color00 2C/3E/50 # Base 00 - Black + set color01 E7/4C/3C # Base 08 - Red + set color02 2E/CC/71 # Base 0B - Green + set color03 F1/C4/0F # Base 0A - Yellow + set color04 34/98/DB # Base 0D - Blue + set color05 9B/59/B6 # Base 0E - Magenta + set color06 1A/BC/9C # Base 0C - Cyan + set color07 e0/e0/e0 # Base 05 - White + set color08 95/A5/A6 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 EC/F0/F1 # Base 07 - Bright White + set color16 E6/7E/22 # Base 09 + set color17 be/64/3c # Base 0F + set color18 34/49/5E # Base 01 + set color19 7F/8C/8D # Base 02 + set color20 BD/C3/C7 # Base 04 + set color21 f5/f5/f5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e0e0e0 # foreground + put_template_custom Ph 2C3E50 # background + put_template_custom Pi e0e0e0 # bold color + put_template_custom Pj 7F8C8D # selection color + put_template_custom Pk e0e0e0 # selected text color + put_template_custom Pl e0e0e0 # cursor + put_template_custom Pm 2C3E50 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 7F8C8D + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 7F8C8D + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param BDC3C7 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=7F8C8D + set -U fish_color_selection white --bold --background=7F8C8D + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme flat + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-framer.fish b/fish/functions/base16-framer.fish new file mode 100644 index 0000000..bd7133a --- /dev/null +++ b/fish/functions/base16-framer.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Framer scheme by Framer (Maintained by Jesse Hoyos) + +function base16-framer -d "Framer" + set color00 18/18/18 # Base 00 - Black + set color01 FD/88/6B # Base 08 - Red + set color02 32/CC/DC # Base 0B - Green + set color03 FE/CB/6E # Base 0A - Yellow + set color04 20/BC/FC # Base 0D - Blue + set color05 BA/8C/FC # Base 0E - Magenta + set color06 AC/DD/FD # Base 0C - Cyan + set color07 D0/D0/D0 # Base 05 - White + set color08 74/74/74 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 EE/EE/EE # Base 07 - Bright White + set color16 FC/47/69 # Base 09 + set color17 B1/5F/4A # Base 0F + set color18 15/15/15 # Base 01 + set color19 46/46/46 # Base 02 + set color20 B9/B9/B9 # Base 04 + set color21 E8/E8/E8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg D0D0D0 # foreground + put_template_custom Ph 181818 # background + put_template_custom Pi D0D0D0 # bold color + put_template_custom Pj 464646 # selection color + put_template_custom Pk D0D0D0 # selected text color + put_template_custom Pl D0D0D0 # cursor + put_template_custom Pm 181818 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 464646 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 464646 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param B9B9B9 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=464646 + set -U fish_color_selection white --bold --background=464646 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme framer + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-fruit-soda.fish b/fish/functions/base16-fruit-soda.fish new file mode 100644 index 0000000..a01a1e6 --- /dev/null +++ b/fish/functions/base16-fruit-soda.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Fruit Soda scheme by jozip + +function base16-fruit-soda -d "Fruit Soda" + set color00 f1/ec/f1 # Base 00 - Black + set color01 fe/3e/31 # Base 08 - Red + set color02 47/f7/4c # Base 0B - Green + set color03 f7/e2/03 # Base 0A - Yellow + set color04 29/31/df # Base 0D - Blue + set color05 61/1f/ce # Base 0E - Magenta + set color06 0f/9c/fd # Base 0C - Cyan + set color07 51/51/51 # Base 05 - White + set color08 b5/b4/b6 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 2d/2c/2c # Base 07 - Bright White + set color16 fe/6d/08 # Base 09 + set color17 b1/6f/40 # Base 0F + set color18 e0/de/e0 # Base 01 + set color19 d8/d5/d5 # Base 02 + set color20 97/95/98 # Base 04 + set color21 47/45/45 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 515151 # foreground + put_template_custom Ph f1ecf1 # background + put_template_custom Pi 515151 # bold color + put_template_custom Pj d8d5d5 # selection color + put_template_custom Pk 515151 # selected text color + put_template_custom Pl 515151 # cursor + put_template_custom Pm f1ecf1 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d8d5d5 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d8d5d5 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 979598 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d8d5d5 + set -U fish_color_selection white --bold --background=d8d5d5 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme fruit-soda + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gigavolt.fish b/fish/functions/base16-gigavolt.fish new file mode 100644 index 0000000..1092e76 --- /dev/null +++ b/fish/functions/base16-gigavolt.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gigavolt scheme by Aidan Swope (http://github.com/Whillikers) + +function base16-gigavolt -d "Gigavolt" + set color00 20/21/26 # Base 00 - Black + set color01 ff/66/1a # Base 08 - Red + set color02 f2/e6/a9 # Base 0B - Green + set color03 ff/dc/2d # Base 0A - Yellow + set color04 40/bf/ff # Base 0D - Blue + set color05 ae/94/f9 # Base 0E - Magenta + set color06 fb/6a/cb # Base 0C - Cyan + set color07 e9/e7/e1 # Base 05 - White + set color08 a1/d2/e6 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f2/fb/ff # Base 07 - Bright White + set color16 19/f9/88 # Base 09 + set color17 61/87/ff # Base 0F + set color18 2d/30/3d # Base 01 + set color19 5a/57/6e # Base 02 + set color20 ca/d3/ff # Base 04 + set color21 ef/f0/f9 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e9e7e1 # foreground + put_template_custom Ph 202126 # background + put_template_custom Pi e9e7e1 # bold color + put_template_custom Pj 5a576e # selection color + put_template_custom Pk e9e7e1 # selected text color + put_template_custom Pl e9e7e1 # cursor + put_template_custom Pm 202126 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5a576e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5a576e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param cad3ff + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5a576e + set -U fish_color_selection white --bold --background=5a576e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gigavolt + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-github.fish b/fish/functions/base16-github.fish new file mode 100644 index 0000000..00cdc64 --- /dev/null +++ b/fish/functions/base16-github.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Github scheme by Defman21 + +function base16-github -d "Github" + set color00 ff/ff/ff # Base 00 - Black + set color01 ed/6a/43 # Base 08 - Red + set color02 18/36/91 # Base 0B - Green + set color03 79/5d/a3 # Base 0A - Yellow + set color04 79/5d/a3 # Base 0D - Blue + set color05 a7/1d/5d # Base 0E - Magenta + set color06 18/36/91 # Base 0C - Cyan + set color07 33/33/33 # Base 05 - White + set color08 96/98/96 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 00/86/b3 # Base 09 + set color17 33/33/33 # Base 0F + set color18 f5/f5/f5 # Base 01 + set color19 c8/c8/fa # Base 02 + set color20 e8/e8/e8 # Base 04 + set color21 ff/ff/ff # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 333333 # foreground + put_template_custom Ph ffffff # background + put_template_custom Pi 333333 # bold color + put_template_custom Pj c8c8fa # selection color + put_template_custom Pk 333333 # selected text color + put_template_custom Pl 333333 # cursor + put_template_custom Pm ffffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion c8c8fa + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment c8c8fa + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param e8e8e8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=c8c8fa + set -U fish_color_selection white --bold --background=c8c8fa + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme github + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-google-dark.fish b/fish/functions/base16-google-dark.fish new file mode 100644 index 0000000..e1568c0 --- /dev/null +++ b/fish/functions/base16-google-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Google Dark scheme by Seth Wright (http://sethawright.com) + +function base16-google-dark -d "Google Dark" + set color00 1d/1f/21 # Base 00 - Black + set color01 CC/34/2B # Base 08 - Red + set color02 19/88/44 # Base 0B - Green + set color03 FB/A9/22 # Base 0A - Yellow + set color04 39/71/ED # Base 0D - Blue + set color05 A3/6A/C7 # Base 0E - Magenta + set color06 39/71/ED # Base 0C - Cyan + set color07 c5/c8/c6 # Base 05 - White + set color08 96/98/96 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 F9/6A/38 # Base 09 + set color17 39/71/ED # Base 0F + set color18 28/2a/2e # Base 01 + set color19 37/3b/41 # Base 02 + set color20 b4/b7/b4 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c5c8c6 # foreground + put_template_custom Ph 1d1f21 # background + put_template_custom Pi c5c8c6 # bold color + put_template_custom Pj 373b41 # selection color + put_template_custom Pk c5c8c6 # selected text color + put_template_custom Pl c5c8c6 # cursor + put_template_custom Pm 1d1f21 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 373b41 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 373b41 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b4b7b4 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=373b41 + set -U fish_color_selection white --bold --background=373b41 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme google-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-google-light.fish b/fish/functions/base16-google-light.fish new file mode 100644 index 0000000..42cfcd8 --- /dev/null +++ b/fish/functions/base16-google-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Google Light scheme by Seth Wright (http://sethawright.com) + +function base16-google-light -d "Google Light" + set color00 ff/ff/ff # Base 00 - Black + set color01 CC/34/2B # Base 08 - Red + set color02 19/88/44 # Base 0B - Green + set color03 FB/A9/22 # Base 0A - Yellow + set color04 39/71/ED # Base 0D - Blue + set color05 A3/6A/C7 # Base 0E - Magenta + set color06 39/71/ED # Base 0C - Cyan + set color07 37/3b/41 # Base 05 - White + set color08 b4/b7/b4 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 1d/1f/21 # Base 07 - Bright White + set color16 F9/6A/38 # Base 09 + set color17 39/71/ED # Base 0F + set color18 e0/e0/e0 # Base 01 + set color19 c5/c8/c6 # Base 02 + set color20 96/98/96 # Base 04 + set color21 28/2a/2e # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 373b41 # foreground + put_template_custom Ph ffffff # background + put_template_custom Pi 373b41 # bold color + put_template_custom Pj c5c8c6 # selection color + put_template_custom Pk 373b41 # selected text color + put_template_custom Pl 373b41 # cursor + put_template_custom Pm ffffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion c5c8c6 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment c5c8c6 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 969896 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=c5c8c6 + set -U fish_color_selection white --bold --background=c5c8c6 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme google-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-grayscale-dark.fish b/fish/functions/base16-grayscale-dark.fish new file mode 100644 index 0000000..c1e93ab --- /dev/null +++ b/fish/functions/base16-grayscale-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Grayscale Dark scheme by Alexandre Gavioli (https://github.com/Alexx2/) + +function base16-grayscale-dark -d "Grayscale Dark" + set color00 10/10/10 # Base 00 - Black + set color01 7c/7c/7c # Base 08 - Red + set color02 8e/8e/8e # Base 0B - Green + set color03 a0/a0/a0 # Base 0A - Yellow + set color04 68/68/68 # Base 0D - Blue + set color05 74/74/74 # Base 0E - Magenta + set color06 86/86/86 # Base 0C - Cyan + set color07 b9/b9/b9 # Base 05 - White + set color08 52/52/52 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f7/f7/f7 # Base 07 - Bright White + set color16 99/99/99 # Base 09 + set color17 5e/5e/5e # Base 0F + set color18 25/25/25 # Base 01 + set color19 46/46/46 # Base 02 + set color20 ab/ab/ab # Base 04 + set color21 e3/e3/e3 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b9b9b9 # foreground + put_template_custom Ph 101010 # background + put_template_custom Pi b9b9b9 # bold color + put_template_custom Pj 464646 # selection color + put_template_custom Pk b9b9b9 # selected text color + put_template_custom Pl b9b9b9 # cursor + put_template_custom Pm 101010 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 464646 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 464646 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param ababab + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=464646 + set -U fish_color_selection white --bold --background=464646 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme grayscale-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-grayscale-light.fish b/fish/functions/base16-grayscale-light.fish new file mode 100644 index 0000000..a3606ee --- /dev/null +++ b/fish/functions/base16-grayscale-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Grayscale Light scheme by Alexandre Gavioli (https://github.com/Alexx2/) + +function base16-grayscale-light -d "Grayscale Light" + set color00 f7/f7/f7 # Base 00 - Black + set color01 7c/7c/7c # Base 08 - Red + set color02 8e/8e/8e # Base 0B - Green + set color03 a0/a0/a0 # Base 0A - Yellow + set color04 68/68/68 # Base 0D - Blue + set color05 74/74/74 # Base 0E - Magenta + set color06 86/86/86 # Base 0C - Cyan + set color07 46/46/46 # Base 05 - White + set color08 ab/ab/ab # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 10/10/10 # Base 07 - Bright White + set color16 99/99/99 # Base 09 + set color17 5e/5e/5e # Base 0F + set color18 e3/e3/e3 # Base 01 + set color19 b9/b9/b9 # Base 02 + set color20 52/52/52 # Base 04 + set color21 25/25/25 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 464646 # foreground + put_template_custom Ph f7f7f7 # background + put_template_custom Pi 464646 # bold color + put_template_custom Pj b9b9b9 # selection color + put_template_custom Pk 464646 # selected text color + put_template_custom Pl 464646 # cursor + put_template_custom Pm f7f7f7 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion b9b9b9 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment b9b9b9 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 525252 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=b9b9b9 + set -U fish_color_selection white --bold --background=b9b9b9 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme grayscale-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-greenscreen.fish b/fish/functions/base16-greenscreen.fish new file mode 100644 index 0000000..7710681 --- /dev/null +++ b/fish/functions/base16-greenscreen.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Green Screen scheme by Chris Kempson (http://chriskempson.com) + +function base16-greenscreen -d "Green Screen" + set color00 00/11/00 # Base 00 - Black + set color01 00/77/00 # Base 08 - Red + set color02 00/bb/00 # Base 0B - Green + set color03 00/77/00 # Base 0A - Yellow + set color04 00/99/00 # Base 0D - Blue + set color05 00/bb/00 # Base 0E - Magenta + set color06 00/55/00 # Base 0C - Cyan + set color07 00/bb/00 # Base 05 - White + set color08 00/77/00 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 00/ff/00 # Base 07 - Bright White + set color16 00/99/00 # Base 09 + set color17 00/55/00 # Base 0F + set color18 00/33/00 # Base 01 + set color19 00/55/00 # Base 02 + set color20 00/99/00 # Base 04 + set color21 00/dd/00 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 00bb00 # foreground + put_template_custom Ph 001100 # background + put_template_custom Pi 00bb00 # bold color + put_template_custom Pj 005500 # selection color + put_template_custom Pk 00bb00 # selected text color + put_template_custom Pl 00bb00 # cursor + put_template_custom Pm 001100 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 005500 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 005500 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 009900 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=005500 + set -U fish_color_selection white --bold --background=005500 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme greenscreen + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-dark-hard.fish b/fish/functions/base16-gruvbox-dark-hard.fish new file mode 100644 index 0000000..a91e590 --- /dev/null +++ b/fish/functions/base16-gruvbox-dark-hard.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox dark, hard scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-dark-hard -d "Gruvbox dark, hard" + set color00 1d/20/21 # Base 00 - Black + set color01 fb/49/34 # Base 08 - Red + set color02 b8/bb/26 # Base 0B - Green + set color03 fa/bd/2f # Base 0A - Yellow + set color04 83/a5/98 # Base 0D - Blue + set color05 d3/86/9b # Base 0E - Magenta + set color06 8e/c0/7c # Base 0C - Cyan + set color07 d5/c4/a1 # Base 05 - White + set color08 66/5c/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fb/f1/c7 # Base 07 - Bright White + set color16 fe/80/19 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 3c/38/36 # Base 01 + set color19 50/49/45 # Base 02 + set color20 bd/ae/93 # Base 04 + set color21 eb/db/b2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d5c4a1 # foreground + put_template_custom Ph 1d2021 # background + put_template_custom Pi d5c4a1 # bold color + put_template_custom Pj 504945 # selection color + put_template_custom Pk d5c4a1 # selected text color + put_template_custom Pl d5c4a1 # cursor + put_template_custom Pm 1d2021 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 504945 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 504945 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param bdae93 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=504945 + set -U fish_color_selection white --bold --background=504945 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-dark-hard + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-dark-medium.fish b/fish/functions/base16-gruvbox-dark-medium.fish new file mode 100644 index 0000000..840a06c --- /dev/null +++ b/fish/functions/base16-gruvbox-dark-medium.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox dark, medium scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-dark-medium -d "Gruvbox dark, medium" + set color00 28/28/28 # Base 00 - Black + set color01 fb/49/34 # Base 08 - Red + set color02 b8/bb/26 # Base 0B - Green + set color03 fa/bd/2f # Base 0A - Yellow + set color04 83/a5/98 # Base 0D - Blue + set color05 d3/86/9b # Base 0E - Magenta + set color06 8e/c0/7c # Base 0C - Cyan + set color07 d5/c4/a1 # Base 05 - White + set color08 66/5c/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fb/f1/c7 # Base 07 - Bright White + set color16 fe/80/19 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 3c/38/36 # Base 01 + set color19 50/49/45 # Base 02 + set color20 bd/ae/93 # Base 04 + set color21 eb/db/b2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d5c4a1 # foreground + put_template_custom Ph 282828 # background + put_template_custom Pi d5c4a1 # bold color + put_template_custom Pj 504945 # selection color + put_template_custom Pk d5c4a1 # selected text color + put_template_custom Pl d5c4a1 # cursor + put_template_custom Pm 282828 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 504945 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 504945 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param bdae93 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=504945 + set -U fish_color_selection white --bold --background=504945 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-dark-medium + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-dark-pale.fish b/fish/functions/base16-gruvbox-dark-pale.fish new file mode 100644 index 0000000..9a29b55 --- /dev/null +++ b/fish/functions/base16-gruvbox-dark-pale.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox dark, pale scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-dark-pale -d "Gruvbox dark, pale" + set color00 26/26/26 # Base 00 - Black + set color01 d7/5f/5f # Base 08 - Red + set color02 af/af/00 # Base 0B - Green + set color03 ff/af/00 # Base 0A - Yellow + set color04 83/ad/ad # Base 0D - Blue + set color05 d4/85/ad # Base 0E - Magenta + set color06 85/ad/85 # Base 0C - Cyan + set color07 da/b9/97 # Base 05 - White + set color08 8a/8a/8a # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 eb/db/b2 # Base 07 - Bright White + set color16 ff/87/00 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 3a/3a/3a # Base 01 + set color19 4e/4e/4e # Base 02 + set color20 94/94/94 # Base 04 + set color21 d5/c4/a1 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg dab997 # foreground + put_template_custom Ph 262626 # background + put_template_custom Pi dab997 # bold color + put_template_custom Pj 4e4e4e # selection color + put_template_custom Pk dab997 # selected text color + put_template_custom Pl dab997 # cursor + put_template_custom Pm 262626 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4e4e4e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4e4e4e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 949494 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4e4e4e + set -U fish_color_selection white --bold --background=4e4e4e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-dark-pale + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-dark-soft.fish b/fish/functions/base16-gruvbox-dark-soft.fish new file mode 100644 index 0000000..233fd74 --- /dev/null +++ b/fish/functions/base16-gruvbox-dark-soft.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox dark, soft scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-dark-soft -d "Gruvbox dark, soft" + set color00 32/30/2f # Base 00 - Black + set color01 fb/49/34 # Base 08 - Red + set color02 b8/bb/26 # Base 0B - Green + set color03 fa/bd/2f # Base 0A - Yellow + set color04 83/a5/98 # Base 0D - Blue + set color05 d3/86/9b # Base 0E - Magenta + set color06 8e/c0/7c # Base 0C - Cyan + set color07 d5/c4/a1 # Base 05 - White + set color08 66/5c/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fb/f1/c7 # Base 07 - Bright White + set color16 fe/80/19 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 3c/38/36 # Base 01 + set color19 50/49/45 # Base 02 + set color20 bd/ae/93 # Base 04 + set color21 eb/db/b2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d5c4a1 # foreground + put_template_custom Ph 32302f # background + put_template_custom Pi d5c4a1 # bold color + put_template_custom Pj 504945 # selection color + put_template_custom Pk d5c4a1 # selected text color + put_template_custom Pl d5c4a1 # cursor + put_template_custom Pm 32302f # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 504945 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 504945 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param bdae93 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=504945 + set -U fish_color_selection white --bold --background=504945 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-dark-soft + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-light-hard.fish b/fish/functions/base16-gruvbox-light-hard.fish new file mode 100644 index 0000000..6eca230 --- /dev/null +++ b/fish/functions/base16-gruvbox-light-hard.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox light, hard scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-light-hard -d "Gruvbox light, hard" + set color00 f9/f5/d7 # Base 00 - Black + set color01 9d/00/06 # Base 08 - Red + set color02 79/74/0e # Base 0B - Green + set color03 b5/76/14 # Base 0A - Yellow + set color04 07/66/78 # Base 0D - Blue + set color05 8f/3f/71 # Base 0E - Magenta + set color06 42/7b/58 # Base 0C - Cyan + set color07 50/49/45 # Base 05 - White + set color08 bd/ae/93 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 28/28/28 # Base 07 - Bright White + set color16 af/3a/03 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 eb/db/b2 # Base 01 + set color19 d5/c4/a1 # Base 02 + set color20 66/5c/54 # Base 04 + set color21 3c/38/36 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 504945 # foreground + put_template_custom Ph f9f5d7 # background + put_template_custom Pi 504945 # bold color + put_template_custom Pj d5c4a1 # selection color + put_template_custom Pk 504945 # selected text color + put_template_custom Pl 504945 # cursor + put_template_custom Pm f9f5d7 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d5c4a1 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d5c4a1 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 665c54 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d5c4a1 + set -U fish_color_selection white --bold --background=d5c4a1 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-light-hard + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-light-medium.fish b/fish/functions/base16-gruvbox-light-medium.fish new file mode 100644 index 0000000..53538a9 --- /dev/null +++ b/fish/functions/base16-gruvbox-light-medium.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox light, medium scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-light-medium -d "Gruvbox light, medium" + set color00 fb/f1/c7 # Base 00 - Black + set color01 9d/00/06 # Base 08 - Red + set color02 79/74/0e # Base 0B - Green + set color03 b5/76/14 # Base 0A - Yellow + set color04 07/66/78 # Base 0D - Blue + set color05 8f/3f/71 # Base 0E - Magenta + set color06 42/7b/58 # Base 0C - Cyan + set color07 50/49/45 # Base 05 - White + set color08 bd/ae/93 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 28/28/28 # Base 07 - Bright White + set color16 af/3a/03 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 eb/db/b2 # Base 01 + set color19 d5/c4/a1 # Base 02 + set color20 66/5c/54 # Base 04 + set color21 3c/38/36 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 504945 # foreground + put_template_custom Ph fbf1c7 # background + put_template_custom Pi 504945 # bold color + put_template_custom Pj d5c4a1 # selection color + put_template_custom Pk 504945 # selected text color + put_template_custom Pl 504945 # cursor + put_template_custom Pm fbf1c7 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d5c4a1 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d5c4a1 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 665c54 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d5c4a1 + set -U fish_color_selection white --bold --background=d5c4a1 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-light-medium + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-gruvbox-light-soft.fish b/fish/functions/base16-gruvbox-light-soft.fish new file mode 100644 index 0000000..0e881f7 --- /dev/null +++ b/fish/functions/base16-gruvbox-light-soft.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Gruvbox light, soft scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +function base16-gruvbox-light-soft -d "Gruvbox light, soft" + set color00 f2/e5/bc # Base 00 - Black + set color01 9d/00/06 # Base 08 - Red + set color02 79/74/0e # Base 0B - Green + set color03 b5/76/14 # Base 0A - Yellow + set color04 07/66/78 # Base 0D - Blue + set color05 8f/3f/71 # Base 0E - Magenta + set color06 42/7b/58 # Base 0C - Cyan + set color07 50/49/45 # Base 05 - White + set color08 bd/ae/93 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 28/28/28 # Base 07 - Bright White + set color16 af/3a/03 # Base 09 + set color17 d6/5d/0e # Base 0F + set color18 eb/db/b2 # Base 01 + set color19 d5/c4/a1 # Base 02 + set color20 66/5c/54 # Base 04 + set color21 3c/38/36 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 504945 # foreground + put_template_custom Ph f2e5bc # background + put_template_custom Pi 504945 # bold color + put_template_custom Pj d5c4a1 # selection color + put_template_custom Pk 504945 # selected text color + put_template_custom Pl 504945 # cursor + put_template_custom Pm f2e5bc # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d5c4a1 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d5c4a1 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 665c54 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d5c4a1 + set -U fish_color_selection white --bold --background=d5c4a1 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme gruvbox-light-soft + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-hardcore.fish b/fish/functions/base16-hardcore.fish new file mode 100644 index 0000000..c989b0a --- /dev/null +++ b/fish/functions/base16-hardcore.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Hardcore scheme by Chris Caller + +function base16-hardcore -d "Hardcore" + set color00 21/21/21 # Base 00 - Black + set color01 f9/26/72 # Base 08 - Red + set color02 a6/e2/2e # Base 0B - Green + set color03 e6/db/74 # Base 0A - Yellow + set color04 66/d9/ef # Base 0D - Blue + set color05 9e/6f/fe # Base 0E - Magenta + set color06 70/83/87 # Base 0C - Cyan + set color07 cd/cd/cd # Base 05 - White + set color08 4A/4A/4A # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 fd/97/1f # Base 09 + set color17 e8/b8/82 # Base 0F + set color18 30/30/30 # Base 01 + set color19 35/35/35 # Base 02 + set color20 70/70/70 # Base 04 + set color21 e5/e5/e5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cdcdcd # foreground + put_template_custom Ph 212121 # background + put_template_custom Pi cdcdcd # bold color + put_template_custom Pj 353535 # selection color + put_template_custom Pk cdcdcd # selected text color + put_template_custom Pl cdcdcd # cursor + put_template_custom Pm 212121 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 353535 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 353535 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 707070 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=353535 + set -U fish_color_selection white --bold --background=353535 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme hardcore + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-harmonic-dark.fish b/fish/functions/base16-harmonic-dark.fish new file mode 100644 index 0000000..200487c --- /dev/null +++ b/fish/functions/base16-harmonic-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Harmonic16 Dark scheme by Jannik Siebert (https://github.com/janniks) + +function base16-harmonic-dark -d "Harmonic16 Dark" + set color00 0b/1c/2c # Base 00 - Black + set color01 bf/8b/56 # Base 08 - Red + set color02 56/bf/8b # Base 0B - Green + set color03 8b/bf/56 # Base 0A - Yellow + set color04 8b/56/bf # Base 0D - Blue + set color05 bf/56/8b # Base 0E - Magenta + set color06 56/8b/bf # Base 0C - Cyan + set color07 cb/d6/e2 # Base 05 - White + set color08 62/7e/99 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f7/f9/fb # Base 07 - Bright White + set color16 bf/bf/56 # Base 09 + set color17 bf/56/56 # Base 0F + set color18 22/3b/54 # Base 01 + set color19 40/5c/79 # Base 02 + set color20 aa/bc/ce # Base 04 + set color21 e5/eb/f1 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cbd6e2 # foreground + put_template_custom Ph 0b1c2c # background + put_template_custom Pi cbd6e2 # bold color + put_template_custom Pj 405c79 # selection color + put_template_custom Pk cbd6e2 # selected text color + put_template_custom Pl cbd6e2 # cursor + put_template_custom Pm 0b1c2c # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 405c79 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 405c79 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param aabcce + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=405c79 + set -U fish_color_selection white --bold --background=405c79 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme harmonic-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-harmonic-light.fish b/fish/functions/base16-harmonic-light.fish new file mode 100644 index 0000000..3a2261e --- /dev/null +++ b/fish/functions/base16-harmonic-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Harmonic16 Light scheme by Jannik Siebert (https://github.com/janniks) + +function base16-harmonic-light -d "Harmonic16 Light" + set color00 f7/f9/fb # Base 00 - Black + set color01 bf/8b/56 # Base 08 - Red + set color02 56/bf/8b # Base 0B - Green + set color03 8b/bf/56 # Base 0A - Yellow + set color04 8b/56/bf # Base 0D - Blue + set color05 bf/56/8b # Base 0E - Magenta + set color06 56/8b/bf # Base 0C - Cyan + set color07 40/5c/79 # Base 05 - White + set color08 aa/bc/ce # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 0b/1c/2c # Base 07 - Bright White + set color16 bf/bf/56 # Base 09 + set color17 bf/56/56 # Base 0F + set color18 e5/eb/f1 # Base 01 + set color19 cb/d6/e2 # Base 02 + set color20 62/7e/99 # Base 04 + set color21 22/3b/54 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 405c79 # foreground + put_template_custom Ph f7f9fb # background + put_template_custom Pi 405c79 # bold color + put_template_custom Pj cbd6e2 # selection color + put_template_custom Pk 405c79 # selected text color + put_template_custom Pl 405c79 # cursor + put_template_custom Pm f7f9fb # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion cbd6e2 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment cbd6e2 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 627e99 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=cbd6e2 + set -U fish_color_selection white --bold --background=cbd6e2 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme harmonic-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-heetch-light.fish b/fish/functions/base16-heetch-light.fish new file mode 100644 index 0000000..d8addd5 --- /dev/null +++ b/fish/functions/base16-heetch-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Heetch Light scheme by Geoffrey Teale (tealeg@gmail.com) + +function base16-heetch-light -d "Heetch Light" + set color00 fe/ff/ff # Base 00 - Black + set color01 27/d9/d5 # Base 08 - Red + set color02 f8/00/59 # Base 0B - Green + set color03 5b/a2/b6 # Base 0A - Yellow + set color04 47/f9/f5 # Base 0D - Blue + set color05 bd/01/52 # Base 0E - Magenta + set color06 c3/36/78 # Base 0C - Cyan + set color07 5a/49/6e # Base 05 - White + set color08 9c/92/a8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 19/01/34 # Base 07 - Bright White + set color16 bd/b6/c5 # Base 09 + set color17 de/da/e2 # Base 0F + set color18 39/25/51 # Base 01 + set color19 7b/6d/8b # Base 02 + set color20 dd/d6/e5 # Base 04 + set color21 47/05/46 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5a496e # foreground + put_template_custom Ph feffff # background + put_template_custom Pi 5a496e # bold color + put_template_custom Pj 7b6d8b # selection color + put_template_custom Pk 5a496e # selected text color + put_template_custom Pl 5a496e # cursor + put_template_custom Pm feffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 7b6d8b + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 7b6d8b + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param ddd6e5 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=7b6d8b + set -U fish_color_selection white --bold --background=7b6d8b + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme heetch-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-heetch.fish b/fish/functions/base16-heetch.fish new file mode 100644 index 0000000..2310e95 --- /dev/null +++ b/fish/functions/base16-heetch.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Heetch Dark scheme by Geoffrey Teale (tealeg@gmail.com) + +function base16-heetch -d "Heetch Dark" + set color00 19/01/34 # Base 00 - Black + set color01 27/D9/D5 # Base 08 - Red + set color02 C3/36/78 # Base 0B - Green + set color03 8F/6C/97 # Base 0A - Yellow + set color04 BD/01/52 # Base 0D - Blue + set color05 82/03/4C # Base 0E - Magenta + set color06 F8/00/59 # Base 0C - Cyan + set color07 BD/B6/C5 # Base 05 - White + set color08 7B/6D/8B # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FE/FF/FF # Base 07 - Bright White + set color16 5B/A2/B6 # Base 09 + set color17 47/05/46 # Base 0F + set color18 39/25/51 # Base 01 + set color19 5A/49/6E # Base 02 + set color20 9C/92/A8 # Base 04 + set color21 DE/DA/E2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg BDB6C5 # foreground + put_template_custom Ph 190134 # background + put_template_custom Pi BDB6C5 # bold color + put_template_custom Pj 5A496E # selection color + put_template_custom Pk BDB6C5 # selected text color + put_template_custom Pl BDB6C5 # cursor + put_template_custom Pm 190134 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5A496E + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5A496E + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9C92A8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5A496E + set -U fish_color_selection white --bold --background=5A496E + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme heetch + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-helios.fish b/fish/functions/base16-helios.fish new file mode 100644 index 0000000..cd9ba54 --- /dev/null +++ b/fish/functions/base16-helios.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Helios scheme by Alex Meyer (https://github.com/reyemxela) + +function base16-helios -d "Helios" + set color00 1d/20/21 # Base 00 - Black + set color01 d7/26/38 # Base 08 - Red + set color02 88/b9/2d # Base 0B - Green + set color03 f1/9d/1a # Base 0A - Yellow + set color04 1e/8b/ac # Base 0D - Blue + set color05 be/42/64 # Base 0E - Magenta + set color06 1b/a5/95 # Base 0C - Cyan + set color07 d5/d5/d5 # Base 05 - White + set color08 6f/75/79 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 e5/e5/e5 # Base 07 - Bright White + set color16 eb/84/13 # Base 09 + set color17 c8/5e/0d # Base 0F + set color18 38/3c/3e # Base 01 + set color19 53/58/5b # Base 02 + set color20 cd/cd/cd # Base 04 + set color21 dd/dd/dd # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d5d5d5 # foreground + put_template_custom Ph 1d2021 # background + put_template_custom Pi d5d5d5 # bold color + put_template_custom Pj 53585b # selection color + put_template_custom Pk d5d5d5 # selected text color + put_template_custom Pl d5d5d5 # cursor + put_template_custom Pm 1d2021 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 53585b + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 53585b + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param cdcdcd + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=53585b + set -U fish_color_selection white --bold --background=53585b + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme helios + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-hopscotch.fish b/fish/functions/base16-hopscotch.fish new file mode 100644 index 0000000..3959091 --- /dev/null +++ b/fish/functions/base16-hopscotch.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Hopscotch scheme by Jan T. Sott + +function base16-hopscotch -d "Hopscotch" + set color00 32/29/31 # Base 00 - Black + set color01 dd/46/4c # Base 08 - Red + set color02 8f/c1/3e # Base 0B - Green + set color03 fd/cc/59 # Base 0A - Yellow + set color04 12/90/bf # Base 0D - Blue + set color05 c8/5e/7c # Base 0E - Magenta + set color06 14/9b/93 # Base 0C - Cyan + set color07 b9/b5/b8 # Base 05 - White + set color08 79/73/79 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 fd/8b/19 # Base 09 + set color17 b3/35/08 # Base 0F + set color18 43/3b/42 # Base 01 + set color19 5c/54/5b # Base 02 + set color20 98/94/98 # Base 04 + set color21 d5/d3/d5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b9b5b8 # foreground + put_template_custom Ph 322931 # background + put_template_custom Pi b9b5b8 # bold color + put_template_custom Pj 5c545b # selection color + put_template_custom Pk b9b5b8 # selected text color + put_template_custom Pl b9b5b8 # cursor + put_template_custom Pm 322931 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5c545b + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5c545b + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 989498 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5c545b + set -U fish_color_selection white --bold --background=5c545b + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme hopscotch + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-horizon-dark.fish b/fish/functions/base16-horizon-dark.fish new file mode 100644 index 0000000..efead0d --- /dev/null +++ b/fish/functions/base16-horizon-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Horizon Dark scheme by Michaël Ball (http://github.com/michael-ball/) + +function base16-horizon-dark -d "Horizon Dark" + set color00 1C/1E/26 # Base 00 - Black + set color01 E9/3C/58 # Base 08 - Red + set color02 EF/AF/8E # Base 0B - Green + set color03 EF/B9/93 # Base 0A - Yellow + set color04 DF/52/73 # Base 0D - Blue + set color05 B0/72/D1 # Base 0E - Magenta + set color06 24/A8/B4 # Base 0C - Cyan + set color07 CB/CE/D0 # Base 05 - White + set color08 6F/6F/70 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 E3/E6/EE # Base 07 - Bright White + set color16 E5/8D/7D # Base 09 + set color17 E4/A3/82 # Base 0F + set color18 23/25/30 # Base 01 + set color19 2E/30/3E # Base 02 + set color20 9D/A0/A2 # Base 04 + set color21 DC/DF/E4 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg CBCED0 # foreground + put_template_custom Ph 1C1E26 # background + put_template_custom Pi CBCED0 # bold color + put_template_custom Pj 2E303E # selection color + put_template_custom Pk CBCED0 # selected text color + put_template_custom Pl CBCED0 # cursor + put_template_custom Pm 1C1E26 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 2E303E + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 2E303E + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9DA0A2 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=2E303E + set -U fish_color_selection white --bold --background=2E303E + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme horizon-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-horizon-light.fish b/fish/functions/base16-horizon-light.fish new file mode 100644 index 0000000..f78ca56 --- /dev/null +++ b/fish/functions/base16-horizon-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Horizon Light scheme by Michaël Ball (http://github.com/michael-ball/) + +function base16-horizon-light -d "Horizon Light" + set color00 FD/F0/ED # Base 00 - Black + set color01 F7/93/9B # Base 08 - Red + set color02 94/E1/B0 # Base 0B - Green + set color03 FB/E0/D9 # Base 0A - Yellow + set color04 DA/10/3F # Base 0D - Blue + set color05 1D/89/91 # Base 0E - Magenta + set color06 DC/33/18 # Base 0C - Cyan + set color07 40/3C/3D # Base 05 - White + set color08 BD/B3/B1 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 20/1C/1D # Base 07 - Bright White + set color16 F6/66/1E # Base 09 + set color17 E5/8C/92 # Base 0F + set color18 FA/DA/D1 # Base 01 + set color19 F9/CB/BE # Base 02 + set color20 94/8C/8A # Base 04 + set color21 30/2C/2D # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 403C3D # foreground + put_template_custom Ph FDF0ED # background + put_template_custom Pi 403C3D # bold color + put_template_custom Pj F9CBBE # selection color + put_template_custom Pk 403C3D # selected text color + put_template_custom Pl 403C3D # cursor + put_template_custom Pm FDF0ED # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion F9CBBE + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment F9CBBE + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 948C8A + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=F9CBBE + set -U fish_color_selection white --bold --background=F9CBBE + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme horizon-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-horizon-terminal-dark.fish b/fish/functions/base16-horizon-terminal-dark.fish new file mode 100644 index 0000000..09a50dc --- /dev/null +++ b/fish/functions/base16-horizon-terminal-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Horizon Dark scheme by Michaël Ball (http://github.com/michael-ball/) + +function base16-horizon-terminal-dark -d "Horizon Dark" + set color00 1C/1E/26 # Base 00 - Black + set color01 E9/56/78 # Base 08 - Red + set color02 29/D3/98 # Base 0B - Green + set color03 FA/C2/9A # Base 0A - Yellow + set color04 26/BB/D9 # Base 0D - Blue + set color05 EE/64/AC # Base 0E - Magenta + set color06 59/E1/E3 # Base 0C - Cyan + set color07 CB/CE/D0 # Base 05 - White + set color08 6F/6F/70 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 E3/E6/EE # Base 07 - Bright White + set color16 FA/B7/95 # Base 09 + set color17 F0/93/83 # Base 0F + set color18 23/25/30 # Base 01 + set color19 2E/30/3E # Base 02 + set color20 9D/A0/A2 # Base 04 + set color21 DC/DF/E4 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg CBCED0 # foreground + put_template_custom Ph 1C1E26 # background + put_template_custom Pi CBCED0 # bold color + put_template_custom Pj 2E303E # selection color + put_template_custom Pk CBCED0 # selected text color + put_template_custom Pl CBCED0 # cursor + put_template_custom Pm 1C1E26 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 2E303E + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 2E303E + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9DA0A2 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=2E303E + set -U fish_color_selection white --bold --background=2E303E + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme horizon-terminal-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-horizon-terminal-light.fish b/fish/functions/base16-horizon-terminal-light.fish new file mode 100644 index 0000000..1cffe64 --- /dev/null +++ b/fish/functions/base16-horizon-terminal-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Horizon Light scheme by Michaël Ball (http://github.com/michael-ball/) + +function base16-horizon-terminal-light -d "Horizon Light" + set color00 FD/F0/ED # Base 00 - Black + set color01 E9/56/78 # Base 08 - Red + set color02 29/D3/98 # Base 0B - Green + set color03 FA/DA/D1 # Base 0A - Yellow + set color04 26/BB/D9 # Base 0D - Blue + set color05 EE/64/AC # Base 0E - Magenta + set color06 59/E1/E3 # Base 0C - Cyan + set color07 40/3C/3D # Base 05 - White + set color08 BD/B3/B1 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 20/1C/1D # Base 07 - Bright White + set color16 F9/CE/C3 # Base 09 + set color17 F9/CB/BE # Base 0F + set color18 FA/DA/D1 # Base 01 + set color19 F9/CB/BE # Base 02 + set color20 94/8C/8A # Base 04 + set color21 30/2C/2D # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 403C3D # foreground + put_template_custom Ph FDF0ED # background + put_template_custom Pi 403C3D # bold color + put_template_custom Pj F9CBBE # selection color + put_template_custom Pk 403C3D # selected text color + put_template_custom Pl 403C3D # cursor + put_template_custom Pm FDF0ED # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion F9CBBE + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment F9CBBE + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 948C8A + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=F9CBBE + set -U fish_color_selection white --bold --background=F9CBBE + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme horizon-terminal-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-humanoid-dark.fish b/fish/functions/base16-humanoid-dark.fish new file mode 100644 index 0000000..d8fbaf3 --- /dev/null +++ b/fish/functions/base16-humanoid-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Humanoid dark scheme by Thomas (tasmo) Friese + +function base16-humanoid-dark -d "Humanoid dark" + set color00 23/26/29 # Base 00 - Black + set color01 f1/12/35 # Base 08 - Red + set color02 02/d8/49 # Base 0B - Green + set color03 ff/b6/27 # Base 0A - Yellow + set color04 00/a6/fb # Base 0D - Blue + set color05 f1/5e/e3 # Base 0E - Magenta + set color06 0d/d9/d6 # Base 0C - Cyan + set color07 f8/f8/f2 # Base 05 - White + set color08 60/61/5d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fc/fc/fc # Base 07 - Bright White + set color16 ff/95/05 # Base 09 + set color17 b2/77/01 # Base 0F + set color18 33/3b/3d # Base 01 + set color19 48/4e/54 # Base 02 + set color20 c0/c0/bd # Base 04 + set color21 fc/fc/f6 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg f8f8f2 # foreground + put_template_custom Ph 232629 # background + put_template_custom Pi f8f8f2 # bold color + put_template_custom Pj 484e54 # selection color + put_template_custom Pk f8f8f2 # selected text color + put_template_custom Pl f8f8f2 # cursor + put_template_custom Pm 232629 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 484e54 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 484e54 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param c0c0bd + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=484e54 + set -U fish_color_selection white --bold --background=484e54 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme humanoid-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-humanoid-light.fish b/fish/functions/base16-humanoid-light.fish new file mode 100644 index 0000000..3644165 --- /dev/null +++ b/fish/functions/base16-humanoid-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Humanoid light scheme by Thomas (tasmo) Friese + +function base16-humanoid-light -d "Humanoid light" + set color00 f8/f8/f2 # Base 00 - Black + set color01 b0/15/1a # Base 08 - Red + set color02 38/8e/3c # Base 0B - Green + set color03 ff/b6/27 # Base 0A - Yellow + set color04 00/82/c9 # Base 0D - Blue + set color05 70/0f/98 # Base 0E - Magenta + set color06 00/8e/8e # Base 0C - Cyan + set color07 23/26/29 # Base 05 - White + set color08 c0/c0/bd # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 07/07/08 # Base 07 - Bright White + set color16 ff/3d/00 # Base 09 + set color17 b2/77/01 # Base 0F + set color18 ef/ef/e9 # Base 01 + set color19 de/de/d8 # Base 02 + set color20 60/61/5d # Base 04 + set color21 2f/33/37 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 232629 # foreground + put_template_custom Ph f8f8f2 # background + put_template_custom Pi 232629 # bold color + put_template_custom Pj deded8 # selection color + put_template_custom Pk 232629 # selected text color + put_template_custom Pl 232629 # cursor + put_template_custom Pm f8f8f2 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion deded8 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment deded8 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 60615d + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=deded8 + set -U fish_color_selection white --bold --background=deded8 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme humanoid-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-ia-dark.fish b/fish/functions/base16-ia-dark.fish new file mode 100644 index 0000000..6b5aeff --- /dev/null +++ b/fish/functions/base16-ia-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# iA Dark scheme by iA Inc. (modified by aramisgithub) + +function base16-ia-dark -d "iA Dark" + set color00 1a/1a/1a # Base 00 - Black + set color01 d8/85/68 # Base 08 - Red + set color02 83/a4/71 # Base 0B - Green + set color03 b9/93/53 # Base 0A - Yellow + set color04 8e/cc/dd # Base 0D - Blue + set color05 b9/8e/b2 # Base 0E - Magenta + set color06 7c/9c/ae # Base 0C - Cyan + set color07 cc/cc/cc # Base 05 - White + set color08 76/76/76 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/f8/f8 # Base 07 - Bright White + set color16 d8/68/68 # Base 09 + set color17 8b/6c/37 # Base 0F + set color18 22/22/22 # Base 01 + set color19 1d/41/4d # Base 02 + set color20 b8/b8/b8 # Base 04 + set color21 e8/e8/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cccccc # foreground + put_template_custom Ph 1a1a1a # background + put_template_custom Pi cccccc # bold color + put_template_custom Pj 1d414d # selection color + put_template_custom Pk cccccc # selected text color + put_template_custom Pl cccccc # cursor + put_template_custom Pm 1a1a1a # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 1d414d + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 1d414d + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b8b8b8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=1d414d + set -U fish_color_selection white --bold --background=1d414d + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme ia-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-ia-light.fish b/fish/functions/base16-ia-light.fish new file mode 100644 index 0000000..9c292e5 --- /dev/null +++ b/fish/functions/base16-ia-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# iA Light scheme by iA Inc. (modified by aramisgithub) + +function base16-ia-light -d "iA Light" + set color00 f6/f6/f6 # Base 00 - Black + set color01 9c/5a/02 # Base 08 - Red + set color02 38/78/1c # Base 0B - Green + set color03 c4/82/18 # Base 0A - Yellow + set color04 48/ba/c2 # Base 0D - Blue + set color05 a9/45/98 # Base 0E - Magenta + set color06 2d/6b/b1 # Base 0C - Cyan + set color07 18/18/18 # Base 05 - White + set color08 89/89/89 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/f8/f8 # Base 07 - Bright White + set color16 c4/3e/18 # Base 09 + set color17 8b/6c/37 # Base 0F + set color18 de/de/de # Base 01 + set color19 bd/e5/f2 # Base 02 + set color20 76/76/76 # Base 04 + set color21 e8/e8/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 181818 # foreground + put_template_custom Ph f6f6f6 # background + put_template_custom Pi 181818 # bold color + put_template_custom Pj bde5f2 # selection color + put_template_custom Pk 181818 # selected text color + put_template_custom Pl 181818 # cursor + put_template_custom Pm f6f6f6 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion bde5f2 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment bde5f2 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 767676 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=bde5f2 + set -U fish_color_selection white --bold --background=bde5f2 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme ia-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-icy.fish b/fish/functions/base16-icy.fish new file mode 100644 index 0000000..96672b8 --- /dev/null +++ b/fish/functions/base16-icy.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Icy Dark scheme by icyphox (https://icyphox.ga) + +function base16-icy -d "Icy Dark" + set color00 02/10/12 # Base 00 - Black + set color01 16/c1/d9 # Base 08 - Red + set color02 4d/d0/e1 # Base 0B - Green + set color03 80/de/ea # Base 0A - Yellow + set color04 00/bc/d4 # Base 0D - Blue + set color05 00/ac/c1 # Base 0E - Magenta + set color06 26/c6/da # Base 0C - Cyan + set color07 09/5b/67 # Base 05 - White + set color08 05/2e/34 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 10/9c/b0 # Base 07 - Bright White + set color16 b3/eb/f2 # Base 09 + set color17 00/97/a7 # Base 0F + set color18 03/16/19 # Base 01 + set color19 04/1f/23 # Base 02 + set color20 06/40/48 # Base 04 + set color21 0c/7c/8c # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 095b67 # foreground + put_template_custom Ph 021012 # background + put_template_custom Pi 095b67 # bold color + put_template_custom Pj 041f23 # selection color + put_template_custom Pk 095b67 # selected text color + put_template_custom Pl 095b67 # cursor + put_template_custom Pm 021012 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 041f23 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 041f23 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 064048 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=041f23 + set -U fish_color_selection white --bold --background=041f23 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme icy + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-irblack.fish b/fish/functions/base16-irblack.fish new file mode 100644 index 0000000..77ed94a --- /dev/null +++ b/fish/functions/base16-irblack.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# IR Black scheme by Timothée Poisot (http://timotheepoisot.fr) + +function base16-irblack -d "IR Black" + set color00 00/00/00 # Base 00 - Black + set color01 ff/6c/60 # Base 08 - Red + set color02 a8/ff/60 # Base 0B - Green + set color03 ff/ff/b6 # Base 0A - Yellow + set color04 96/cb/fe # Base 0D - Blue + set color05 ff/73/fd # Base 0E - Magenta + set color06 c6/c5/fe # Base 0C - Cyan + set color07 b5/b3/aa # Base 05 - White + set color08 6c/6c/66 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fd/fb/ee # Base 07 - Bright White + set color16 e9/c0/62 # Base 09 + set color17 b1/8a/3d # Base 0F + set color18 24/24/22 # Base 01 + set color19 48/48/44 # Base 02 + set color20 91/8f/88 # Base 04 + set color21 d9/d7/cc # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b5b3aa # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi b5b3aa # bold color + put_template_custom Pj 484844 # selection color + put_template_custom Pk b5b3aa # selected text color + put_template_custom Pl b5b3aa # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 484844 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 484844 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 918f88 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=484844 + set -U fish_color_selection white --bold --background=484844 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme irblack + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-isotope.fish b/fish/functions/base16-isotope.fish new file mode 100644 index 0000000..c254258 --- /dev/null +++ b/fish/functions/base16-isotope.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Isotope scheme by Jan T. Sott + +function base16-isotope -d "Isotope" + set color00 00/00/00 # Base 00 - Black + set color01 ff/00/00 # Base 08 - Red + set color02 33/ff/00 # Base 0B - Green + set color03 ff/00/99 # Base 0A - Yellow + set color04 00/66/ff # Base 0D - Blue + set color05 cc/00/ff # Base 0E - Magenta + set color06 00/ff/ff # Base 0C - Cyan + set color07 d0/d0/d0 # Base 05 - White + set color08 80/80/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/99/00 # Base 09 + set color17 33/00/ff # Base 0F + set color18 40/40/40 # Base 01 + set color19 60/60/60 # Base 02 + set color20 c0/c0/c0 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d0d0d0 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi d0d0d0 # bold color + put_template_custom Pj 606060 # selection color + put_template_custom Pk d0d0d0 # selected text color + put_template_custom Pl d0d0d0 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 606060 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 606060 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param c0c0c0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=606060 + set -U fish_color_selection white --bold --background=606060 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme isotope + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-kimber.fish b/fish/functions/base16-kimber.fish new file mode 100644 index 0000000..6cb393d --- /dev/null +++ b/fish/functions/base16-kimber.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Kimber scheme by Mishka Nguyen (https://github.com/akhsiM) + +function base16-kimber -d "Kimber" + set color00 22/22/22 # Base 00 - Black + set color01 C8/8C/8C # Base 08 - Red + set color02 99/C8/99 # Base 0B - Green + set color03 D8/B5/6D # Base 0A - Yellow + set color04 53/7C/9C # Base 0D - Blue + set color05 86/CA/CD # Base 0E - Magenta + set color06 78/B4/B4 # Base 0C - Cyan + set color07 DE/DE/E7 # Base 05 - White + set color08 64/46/46 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/E6 # Base 07 - Bright White + set color16 47/6C/88 # Base 09 + set color17 70/4F/4F # Base 0F + set color18 31/31/31 # Base 01 + set color19 55/5D/55 # Base 02 + set color20 5A/5A/5A # Base 04 + set color21 C3/C3/B4 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg DEDEE7 # foreground + put_template_custom Ph 222222 # background + put_template_custom Pi DEDEE7 # bold color + put_template_custom Pj 555D55 # selection color + put_template_custom Pk DEDEE7 # selected text color + put_template_custom Pl DEDEE7 # cursor + put_template_custom Pm 222222 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 555D55 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 555D55 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5A5A5A + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=555D55 + set -U fish_color_selection white --bold --background=555D55 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme kimber + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-macintosh.fish b/fish/functions/base16-macintosh.fish new file mode 100644 index 0000000..f88a18d --- /dev/null +++ b/fish/functions/base16-macintosh.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Macintosh scheme by Rebecca Bettencourt (http://www.kreativekorp.com) + +function base16-macintosh -d "Macintosh" + set color00 00/00/00 # Base 00 - Black + set color01 dd/09/07 # Base 08 - Red + set color02 1f/b7/14 # Base 0B - Green + set color03 fb/f3/05 # Base 0A - Yellow + set color04 00/00/d3 # Base 0D - Blue + set color05 47/00/a5 # Base 0E - Magenta + set color06 02/ab/ea # Base 0C - Cyan + set color07 c0/c0/c0 # Base 05 - White + set color08 80/80/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/64/03 # Base 09 + set color17 90/71/3a # Base 0F + set color18 40/40/40 # Base 01 + set color19 40/40/40 # Base 02 + set color20 80/80/80 # Base 04 + set color21 c0/c0/c0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c0c0c0 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c0c0c0 # bold color + put_template_custom Pj 404040 # selection color + put_template_custom Pk c0c0c0 # selected text color + put_template_custom Pl c0c0c0 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 404040 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 404040 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 808080 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=404040 + set -U fish_color_selection white --bold --background=404040 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme macintosh + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-marrakesh.fish b/fish/functions/base16-marrakesh.fish new file mode 100644 index 0000000..dfe9496 --- /dev/null +++ b/fish/functions/base16-marrakesh.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Marrakesh scheme by Alexandre Gavioli (http://github.com/Alexx2/) + +function base16-marrakesh -d "Marrakesh" + set color00 20/16/02 # Base 00 - Black + set color01 c3/53/59 # Base 08 - Red + set color02 18/97/4e # Base 0B - Green + set color03 a8/83/39 # Base 0A - Yellow + set color04 47/7c/a1 # Base 0D - Blue + set color05 88/68/b3 # Base 0E - Magenta + set color06 75/a7/38 # Base 0C - Cyan + set color07 94/8e/48 # Base 05 - White + set color08 6c/68/23 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fa/f0/a5 # Base 07 - Bright White + set color16 b3/61/44 # Base 09 + set color17 b3/58/8e # Base 0F + set color18 30/2e/00 # Base 01 + set color19 5f/5b/17 # Base 02 + set color20 86/81/3b # Base 04 + set color21 cc/c3/7a # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 948e48 # foreground + put_template_custom Ph 201602 # background + put_template_custom Pi 948e48 # bold color + put_template_custom Pj 5f5b17 # selection color + put_template_custom Pk 948e48 # selected text color + put_template_custom Pl 948e48 # cursor + put_template_custom Pm 201602 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5f5b17 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5f5b17 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 86813b + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5f5b17 + set -U fish_color_selection white --bold --background=5f5b17 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme marrakesh + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-materia.fish b/fish/functions/base16-materia.fish new file mode 100644 index 0000000..5699c0a --- /dev/null +++ b/fish/functions/base16-materia.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Materia scheme by Defman21 + +function base16-materia -d "Materia" + set color00 26/32/38 # Base 00 - Black + set color01 EC/5F/67 # Base 08 - Red + set color02 8B/D6/49 # Base 0B - Green + set color03 FF/CC/00 # Base 0A - Yellow + set color04 89/DD/FF # Base 0D - Blue + set color05 82/AA/FF # Base 0E - Magenta + set color06 80/CB/C4 # Base 0C - Cyan + set color07 CD/D3/DE # Base 05 - White + set color08 70/78/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 EA/95/60 # Base 09 + set color17 EC/5F/67 # Base 0F + set color18 2C/39/3F # Base 01 + set color19 37/47/4F # Base 02 + set color20 C9/CC/D3 # Base 04 + set color21 D5/DB/E5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg CDD3DE # foreground + put_template_custom Ph 263238 # background + put_template_custom Pi CDD3DE # bold color + put_template_custom Pj 37474F # selection color + put_template_custom Pk CDD3DE # selected text color + put_template_custom Pl CDD3DE # cursor + put_template_custom Pm 263238 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 37474F + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 37474F + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param C9CCD3 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=37474F + set -U fish_color_selection white --bold --background=37474F + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme materia + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-material-darker.fish b/fish/functions/base16-material-darker.fish new file mode 100644 index 0000000..85a95ed --- /dev/null +++ b/fish/functions/base16-material-darker.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Material Darker scheme by Nate Peterson + +function base16-material-darker -d "Material Darker" + set color00 21/21/21 # Base 00 - Black + set color01 F0/71/78 # Base 08 - Red + set color02 C3/E8/8D # Base 0B - Green + set color03 FF/CB/6B # Base 0A - Yellow + set color04 82/AA/FF # Base 0D - Blue + set color05 C7/92/EA # Base 0E - Magenta + set color06 89/DD/FF # Base 0C - Cyan + set color07 EE/FF/FF # Base 05 - White + set color08 4A/4A/4A # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 F7/8C/6C # Base 09 + set color17 FF/53/70 # Base 0F + set color18 30/30/30 # Base 01 + set color19 35/35/35 # Base 02 + set color20 B2/CC/D6 # Base 04 + set color21 EE/FF/FF # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg EEFFFF # foreground + put_template_custom Ph 212121 # background + put_template_custom Pi EEFFFF # bold color + put_template_custom Pj 353535 # selection color + put_template_custom Pk EEFFFF # selected text color + put_template_custom Pl EEFFFF # cursor + put_template_custom Pm 212121 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 353535 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 353535 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param B2CCD6 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=353535 + set -U fish_color_selection white --bold --background=353535 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme material-darker + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-material-lighter.fish b/fish/functions/base16-material-lighter.fish new file mode 100644 index 0000000..0a4c194 --- /dev/null +++ b/fish/functions/base16-material-lighter.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Material Lighter scheme by Nate Peterson + +function base16-material-lighter -d "Material Lighter" + set color00 FA/FA/FA # Base 00 - Black + set color01 FF/53/70 # Base 08 - Red + set color02 91/B8/59 # Base 0B - Green + set color03 FF/B6/2C # Base 0A - Yellow + set color04 61/82/B8 # Base 0D - Blue + set color05 7C/4D/FF # Base 0E - Magenta + set color06 39/AD/B5 # Base 0C - Cyan + set color07 80/CB/C4 # Base 05 - White + set color08 CC/D7/DA # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 F7/6D/47 # Base 09 + set color17 E5/39/35 # Base 0F + set color18 E7/EA/EC # Base 01 + set color19 CC/EA/E7 # Base 02 + set color20 87/96/B0 # Base 04 + set color21 80/CB/C4 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 80CBC4 # foreground + put_template_custom Ph FAFAFA # background + put_template_custom Pi 80CBC4 # bold color + put_template_custom Pj CCEAE7 # selection color + put_template_custom Pk 80CBC4 # selected text color + put_template_custom Pl 80CBC4 # cursor + put_template_custom Pm FAFAFA # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion CCEAE7 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment CCEAE7 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 8796B0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=CCEAE7 + set -U fish_color_selection white --bold --background=CCEAE7 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme material-lighter + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-material-palenight.fish b/fish/functions/base16-material-palenight.fish new file mode 100644 index 0000000..cbdd898 --- /dev/null +++ b/fish/functions/base16-material-palenight.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Material Palenight scheme by Nate Peterson + +function base16-material-palenight -d "Material Palenight" + set color00 29/2D/3E # Base 00 - Black + set color01 F0/71/78 # Base 08 - Red + set color02 C3/E8/8D # Base 0B - Green + set color03 FF/CB/6B # Base 0A - Yellow + set color04 82/AA/FF # Base 0D - Blue + set color05 C7/92/EA # Base 0E - Magenta + set color06 89/DD/FF # Base 0C - Cyan + set color07 95/9D/CB # Base 05 - White + set color08 67/6E/95 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 F7/8C/6C # Base 09 + set color17 FF/53/70 # Base 0F + set color18 44/42/67 # Base 01 + set color19 32/37/4D # Base 02 + set color20 87/96/B0 # Base 04 + set color21 95/9D/CB # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 959DCB # foreground + put_template_custom Ph 292D3E # background + put_template_custom Pi 959DCB # bold color + put_template_custom Pj 32374D # selection color + put_template_custom Pk 959DCB # selected text color + put_template_custom Pl 959DCB # cursor + put_template_custom Pm 292D3E # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 32374D + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 32374D + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 8796B0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=32374D + set -U fish_color_selection white --bold --background=32374D + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme material-palenight + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-material-vivid.fish b/fish/functions/base16-material-vivid.fish new file mode 100644 index 0000000..5f217b1 --- /dev/null +++ b/fish/functions/base16-material-vivid.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Material Vivid scheme by joshyrobot + +function base16-material-vivid -d "Material Vivid" + set color00 20/21/24 # Base 00 - Black + set color01 f4/43/36 # Base 08 - Red + set color02 00/e6/76 # Base 0B - Green + set color03 ff/eb/3b # Base 0A - Yellow + set color04 21/96/f3 # Base 0D - Blue + set color05 67/3a/b7 # Base 0E - Magenta + set color06 00/bc/d4 # Base 0C - Cyan + set color07 80/86/8b # Base 05 - White + set color08 44/46/4d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 ff/98/00 # Base 09 + set color17 8d/6e/63 # Base 0F + set color18 27/29/2c # Base 01 + set color19 32/36/39 # Base 02 + set color20 67/6c/71 # Base 04 + set color21 9e/9e/9e # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 80868b # foreground + put_template_custom Ph 202124 # background + put_template_custom Pi 80868b # bold color + put_template_custom Pj 323639 # selection color + put_template_custom Pk 80868b # selected text color + put_template_custom Pl 80868b # cursor + put_template_custom Pm 202124 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 323639 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 323639 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 676c71 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=323639 + set -U fish_color_selection white --bold --background=323639 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme material-vivid + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-material.fish b/fish/functions/base16-material.fish new file mode 100644 index 0000000..b063239 --- /dev/null +++ b/fish/functions/base16-material.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Material scheme by Nate Peterson + +function base16-material -d "Material" + set color00 26/32/38 # Base 00 - Black + set color01 F0/71/78 # Base 08 - Red + set color02 C3/E8/8D # Base 0B - Green + set color03 FF/CB/6B # Base 0A - Yellow + set color04 82/AA/FF # Base 0D - Blue + set color05 C7/92/EA # Base 0E - Magenta + set color06 89/DD/FF # Base 0C - Cyan + set color07 EE/FF/FF # Base 05 - White + set color08 54/6E/7A # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 F7/8C/6C # Base 09 + set color17 FF/53/70 # Base 0F + set color18 2E/3C/43 # Base 01 + set color19 31/45/49 # Base 02 + set color20 B2/CC/D6 # Base 04 + set color21 EE/FF/FF # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg EEFFFF # foreground + put_template_custom Ph 263238 # background + put_template_custom Pi EEFFFF # bold color + put_template_custom Pj 314549 # selection color + put_template_custom Pk EEFFFF # selected text color + put_template_custom Pl EEFFFF # cursor + put_template_custom Pm 263238 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 314549 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 314549 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param B2CCD6 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=314549 + set -U fish_color_selection white --bold --background=314549 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme material + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-mellow-purple.fish b/fish/functions/base16-mellow-purple.fish new file mode 100644 index 0000000..253c4c9 --- /dev/null +++ b/fish/functions/base16-mellow-purple.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Mellow Purple scheme by gidsi + +function base16-mellow-purple -d "Mellow Purple" + set color00 1e/05/28 # Base 00 - Black + set color01 00/d9/e9 # Base 08 - Red + set color02 05/cb/0d # Base 0B - Green + set color03 95/5a/e7 # Base 0A - Yellow + set color04 55/00/68 # Base 0D - Blue + set color05 89/91/bb # Base 0E - Magenta + set color06 b9/00/b1 # Base 0C - Cyan + set color07 ff/ee/ff # Base 05 - White + set color08 32/0f/55 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/c0/ff # Base 07 - Bright White + set color16 aa/00/a3 # Base 09 + set color17 4d/6f/ff # Base 0F + set color18 1A/09/2D # Base 01 + set color19 33/13/54 # Base 02 + set color20 87/35/82 # Base 04 + set color21 ff/ee/ff # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg ffeeff # foreground + put_template_custom Ph 1e0528 # background + put_template_custom Pi ffeeff # bold color + put_template_custom Pj 331354 # selection color + put_template_custom Pk ffeeff # selected text color + put_template_custom Pl ffeeff # cursor + put_template_custom Pm 1e0528 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 331354 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 331354 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 873582 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=331354 + set -U fish_color_selection white --bold --background=331354 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme mellow-purple + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-mexico-light.fish b/fish/functions/base16-mexico-light.fish new file mode 100644 index 0000000..8e05c00 --- /dev/null +++ b/fish/functions/base16-mexico-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Mexico Light scheme by Sheldon Johnson + +function base16-mexico-light -d "Mexico Light" + set color00 f8/f8/f8 # Base 00 - Black + set color01 ab/46/42 # Base 08 - Red + set color02 53/89/47 # Base 0B - Green + set color03 f7/9a/0e # Base 0A - Yellow + set color04 7c/af/c2 # Base 0D - Blue + set color05 96/60/9e # Base 0E - Magenta + set color06 4b/80/93 # Base 0C - Cyan + set color07 38/38/38 # Base 05 - White + set color08 b8/b8/b8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 18/18/18 # Base 07 - Bright White + set color16 dc/96/56 # Base 09 + set color17 a1/69/46 # Base 0F + set color18 e8/e8/e8 # Base 01 + set color19 d8/d8/d8 # Base 02 + set color20 58/58/58 # Base 04 + set color21 28/28/28 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 383838 # foreground + put_template_custom Ph f8f8f8 # background + put_template_custom Pi 383838 # bold color + put_template_custom Pj d8d8d8 # selection color + put_template_custom Pk 383838 # selected text color + put_template_custom Pl 383838 # cursor + put_template_custom Pm f8f8f8 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d8d8d8 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d8d8d8 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 585858 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d8d8d8 + set -U fish_color_selection white --bold --background=d8d8d8 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme mexico-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-mocha.fish b/fish/functions/base16-mocha.fish new file mode 100644 index 0000000..ff4832a --- /dev/null +++ b/fish/functions/base16-mocha.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Mocha scheme by Chris Kempson (http://chriskempson.com) + +function base16-mocha -d "Mocha" + set color00 3B/32/28 # Base 00 - Black + set color01 cb/60/77 # Base 08 - Red + set color02 be/b5/5b # Base 0B - Green + set color03 f4/bc/87 # Base 0A - Yellow + set color04 8a/b3/b5 # Base 0D - Blue + set color05 a8/9b/b9 # Base 0E - Magenta + set color06 7b/bd/a4 # Base 0C - Cyan + set color07 d0/c8/c6 # Base 05 - White + set color08 7e/70/5a # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f5/ee/eb # Base 07 - Bright White + set color16 d2/8b/71 # Base 09 + set color17 bb/95/84 # Base 0F + set color18 53/46/36 # Base 01 + set color19 64/52/40 # Base 02 + set color20 b8/af/ad # Base 04 + set color21 e9/e1/dd # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d0c8c6 # foreground + put_template_custom Ph 3B3228 # background + put_template_custom Pi d0c8c6 # bold color + put_template_custom Pj 645240 # selection color + put_template_custom Pk d0c8c6 # selected text color + put_template_custom Pl d0c8c6 # cursor + put_template_custom Pm 3B3228 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 645240 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 645240 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b8afad + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=645240 + set -U fish_color_selection white --bold --background=645240 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme mocha + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-monokai.fish b/fish/functions/base16-monokai.fish new file mode 100644 index 0000000..dffaf8a --- /dev/null +++ b/fish/functions/base16-monokai.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Monokai scheme by Wimer Hazenberg (http://www.monokai.nl) + +function base16-monokai -d "Monokai" + set color00 27/28/22 # Base 00 - Black + set color01 f9/26/72 # Base 08 - Red + set color02 a6/e2/2e # Base 0B - Green + set color03 f4/bf/75 # Base 0A - Yellow + set color04 66/d9/ef # Base 0D - Blue + set color05 ae/81/ff # Base 0E - Magenta + set color06 a1/ef/e4 # Base 0C - Cyan + set color07 f8/f8/f2 # Base 05 - White + set color08 75/71/5e # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f9/f8/f5 # Base 07 - Bright White + set color16 fd/97/1f # Base 09 + set color17 cc/66/33 # Base 0F + set color18 38/38/30 # Base 01 + set color19 49/48/3e # Base 02 + set color20 a5/9f/85 # Base 04 + set color21 f5/f4/f1 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg f8f8f2 # foreground + put_template_custom Ph 272822 # background + put_template_custom Pi f8f8f2 # bold color + put_template_custom Pj 49483e # selection color + put_template_custom Pk f8f8f2 # selected text color + put_template_custom Pl f8f8f2 # cursor + put_template_custom Pm 272822 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 49483e + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 49483e + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a59f85 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=49483e + set -U fish_color_selection white --bold --background=49483e + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme monokai + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-nebula.fish b/fish/functions/base16-nebula.fish new file mode 100644 index 0000000..e6df0ca --- /dev/null +++ b/fish/functions/base16-nebula.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Nebula scheme by Gabriel Fontes (https://github.com/Misterio77) + +function base16-nebula -d "Nebula" + set color00 22/27/3b # Base 00 - Black + set color01 77/7a/bc # Base 08 - Red + set color02 65/62/a8 # Base 0B - Green + set color03 4f/90/62 # Base 0A - Yellow + set color04 4d/6b/b6 # Base 0D - Blue + set color05 71/6c/ae # Base 0E - Magenta + set color06 22/6f/68 # Base 0C - Cyan + set color07 a4/a6/a9 # Base 05 - White + set color08 6e/6f/72 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 8d/bd/aa # Base 07 - Bright White + set color16 94/92/9e # Base 09 + set color17 8c/70/a7 # Base 0F + set color18 41/4f/60 # Base 01 + set color19 5a/83/80 # Base 02 + set color20 87/88/8b # Base 04 + set color21 c7/c9/cd # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a4a6a9 # foreground + put_template_custom Ph 22273b # background + put_template_custom Pi a4a6a9 # bold color + put_template_custom Pj 5a8380 # selection color + put_template_custom Pk a4a6a9 # selected text color + put_template_custom Pl a4a6a9 # cursor + put_template_custom Pm 22273b # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5a8380 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5a8380 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 87888b + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5a8380 + set -U fish_color_selection white --bold --background=5a8380 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme nebula + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-nord.fish b/fish/functions/base16-nord.fish new file mode 100644 index 0000000..e20778f --- /dev/null +++ b/fish/functions/base16-nord.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Nord scheme by arcticicestudio + +function base16-nord -d "Nord" + set color00 2E/34/40 # Base 00 - Black + set color01 BF/61/6A # Base 08 - Red + set color02 A3/BE/8C # Base 0B - Green + set color03 EB/CB/8B # Base 0A - Yellow + set color04 81/A1/C1 # Base 0D - Blue + set color05 B4/8E/AD # Base 0E - Magenta + set color06 88/C0/D0 # Base 0C - Cyan + set color07 E5/E9/F0 # Base 05 - White + set color08 4C/56/6A # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 8F/BC/BB # Base 07 - Bright White + set color16 D0/87/70 # Base 09 + set color17 5E/81/AC # Base 0F + set color18 3B/42/52 # Base 01 + set color19 43/4C/5E # Base 02 + set color20 D8/DE/E9 # Base 04 + set color21 EC/EF/F4 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg E5E9F0 # foreground + put_template_custom Ph 2E3440 # background + put_template_custom Pi E5E9F0 # bold color + put_template_custom Pj 434C5E # selection color + put_template_custom Pk E5E9F0 # selected text color + put_template_custom Pl E5E9F0 # cursor + put_template_custom Pm 2E3440 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 434C5E + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 434C5E + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param D8DEE9 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=434C5E + set -U fish_color_selection white --bold --background=434C5E + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme nord + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-nova.fish b/fish/functions/base16-nova.fish new file mode 100644 index 0000000..a9b4582 --- /dev/null +++ b/fish/functions/base16-nova.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Nova scheme by George Essig (https://github.com/gessig), Trevor D. Miller (https://trevordmiller.com) + +function base16-nova -d "Nova" + set color00 3C/4C/55 # Base 00 - Black + set color01 83/AF/E5 # Base 08 - Red + set color02 7F/C1/CA # Base 0B - Green + set color03 A8/CE/93 # Base 0A - Yellow + set color04 83/AF/E5 # Base 0D - Blue + set color05 9A/93/E1 # Base 0E - Magenta + set color06 F2/C3/8F # Base 0C - Cyan + set color07 C5/D4/DD # Base 05 - White + set color08 89/9B/A6 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 55/68/73 # Base 07 - Bright White + set color16 7F/C1/CA # Base 09 + set color17 F2/C3/8F # Base 0F + set color18 55/68/73 # Base 01 + set color19 6A/7D/89 # Base 02 + set color20 89/9B/A6 # Base 04 + set color21 89/9B/A6 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg C5D4DD # foreground + put_template_custom Ph 3C4C55 # background + put_template_custom Pi C5D4DD # bold color + put_template_custom Pj 6A7D89 # selection color + put_template_custom Pk C5D4DD # selected text color + put_template_custom Pl C5D4DD # cursor + put_template_custom Pm 3C4C55 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 6A7D89 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 6A7D89 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 899BA6 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=6A7D89 + set -U fish_color_selection white --bold --background=6A7D89 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme nova + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-ocean.fish b/fish/functions/base16-ocean.fish new file mode 100644 index 0000000..33e20a5 --- /dev/null +++ b/fish/functions/base16-ocean.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Ocean scheme by Chris Kempson (http://chriskempson.com) + +function base16-ocean -d "Ocean" + set color00 2b/30/3b # Base 00 - Black + set color01 bf/61/6a # Base 08 - Red + set color02 a3/be/8c # Base 0B - Green + set color03 eb/cb/8b # Base 0A - Yellow + set color04 8f/a1/b3 # Base 0D - Blue + set color05 b4/8e/ad # Base 0E - Magenta + set color06 96/b5/b4 # Base 0C - Cyan + set color07 c0/c5/ce # Base 05 - White + set color08 65/73/7e # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ef/f1/f5 # Base 07 - Bright White + set color16 d0/87/70 # Base 09 + set color17 ab/79/67 # Base 0F + set color18 34/3d/46 # Base 01 + set color19 4f/5b/66 # Base 02 + set color20 a7/ad/ba # Base 04 + set color21 df/e1/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c0c5ce # foreground + put_template_custom Ph 2b303b # background + put_template_custom Pi c0c5ce # bold color + put_template_custom Pj 4f5b66 # selection color + put_template_custom Pk c0c5ce # selected text color + put_template_custom Pl c0c5ce # cursor + put_template_custom Pm 2b303b # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4f5b66 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4f5b66 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a7adba + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4f5b66 + set -U fish_color_selection white --bold --background=4f5b66 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme ocean + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-oceanicnext.fish b/fish/functions/base16-oceanicnext.fish new file mode 100644 index 0000000..ca6ae81 --- /dev/null +++ b/fish/functions/base16-oceanicnext.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# OceanicNext scheme by https://github.com/voronianski/oceanic-next-color-scheme + +function base16-oceanicnext -d "OceanicNext" + set color00 1B/2B/34 # Base 00 - Black + set color01 EC/5f/67 # Base 08 - Red + set color02 99/C7/94 # Base 0B - Green + set color03 FA/C8/63 # Base 0A - Yellow + set color04 66/99/CC # Base 0D - Blue + set color05 C5/94/C5 # Base 0E - Magenta + set color06 5F/B3/B3 # Base 0C - Cyan + set color07 C0/C5/CE # Base 05 - White + set color08 65/73/7E # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 D8/DE/E9 # Base 07 - Bright White + set color16 F9/91/57 # Base 09 + set color17 AB/79/67 # Base 0F + set color18 34/3D/46 # Base 01 + set color19 4F/5B/66 # Base 02 + set color20 A7/AD/BA # Base 04 + set color21 CD/D3/DE # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg C0C5CE # foreground + put_template_custom Ph 1B2B34 # background + put_template_custom Pi C0C5CE # bold color + put_template_custom Pj 4F5B66 # selection color + put_template_custom Pk C0C5CE # selected text color + put_template_custom Pl C0C5CE # cursor + put_template_custom Pm 1B2B34 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4F5B66 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4F5B66 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param A7ADBA + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4F5B66 + set -U fish_color_selection white --bold --background=4F5B66 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme oceanicnext + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-one-light.fish b/fish/functions/base16-one-light.fish new file mode 100644 index 0000000..6b27340 --- /dev/null +++ b/fish/functions/base16-one-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# One Light scheme by Daniel Pfeifer (http://github.com/purpleKarrot) + +function base16-one-light -d "One Light" + set color00 fa/fa/fa # Base 00 - Black + set color01 ca/12/43 # Base 08 - Red + set color02 50/a1/4f # Base 0B - Green + set color03 c1/84/01 # Base 0A - Yellow + set color04 40/78/f2 # Base 0D - Blue + set color05 a6/26/a4 # Base 0E - Magenta + set color06 01/84/bc # Base 0C - Cyan + set color07 38/3a/42 # Base 05 - White + set color08 a0/a1/a7 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 09/0a/0b # Base 07 - Bright White + set color16 d7/5f/00 # Base 09 + set color17 98/68/01 # Base 0F + set color18 f0/f0/f1 # Base 01 + set color19 e5/e5/e6 # Base 02 + set color20 69/6c/77 # Base 04 + set color21 20/22/27 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 383a42 # foreground + put_template_custom Ph fafafa # background + put_template_custom Pi 383a42 # bold color + put_template_custom Pj e5e5e6 # selection color + put_template_custom Pk 383a42 # selected text color + put_template_custom Pl 383a42 # cursor + put_template_custom Pm fafafa # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion e5e5e6 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment e5e5e6 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 696c77 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=e5e5e6 + set -U fish_color_selection white --bold --background=e5e5e6 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme one-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-onedark.fish b/fish/functions/base16-onedark.fish new file mode 100644 index 0000000..0754dc3 --- /dev/null +++ b/fish/functions/base16-onedark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# OneDark scheme by Lalit Magant (http://github.com/tilal6991) + +function base16-onedark -d "OneDark" + set color00 28/2c/34 # Base 00 - Black + set color01 e0/6c/75 # Base 08 - Red + set color02 98/c3/79 # Base 0B - Green + set color03 e5/c0/7b # Base 0A - Yellow + set color04 61/af/ef # Base 0D - Blue + set color05 c6/78/dd # Base 0E - Magenta + set color06 56/b6/c2 # Base 0C - Cyan + set color07 ab/b2/bf # Base 05 - White + set color08 54/58/62 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c8/cc/d4 # Base 07 - Bright White + set color16 d1/9a/66 # Base 09 + set color17 be/50/46 # Base 0F + set color18 35/3b/45 # Base 01 + set color19 3e/44/51 # Base 02 + set color20 56/5c/64 # Base 04 + set color21 b6/bd/ca # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg abb2bf # foreground + put_template_custom Ph 282c34 # background + put_template_custom Pi abb2bf # bold color + put_template_custom Pj 3e4451 # selection color + put_template_custom Pk abb2bf # selected text color + put_template_custom Pl abb2bf # cursor + put_template_custom Pm 282c34 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 3e4451 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 3e4451 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 565c64 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=3e4451 + set -U fish_color_selection white --bold --background=3e4451 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme onedark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-outrun-dark.fish b/fish/functions/base16-outrun-dark.fish new file mode 100644 index 0000000..a9164ca --- /dev/null +++ b/fish/functions/base16-outrun-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Outrun Dark scheme by Hugo Delahousse (http://github.com/hugodelahousse/) + +function base16-outrun-dark -d "Outrun Dark" + set color00 00/00/2A # Base 00 - Black + set color01 FF/42/42 # Base 08 - Red + set color02 59/F1/76 # Base 0B - Green + set color03 F3/E8/77 # Base 0A - Yellow + set color04 66/B0/FF # Base 0D - Blue + set color05 F1/05/96 # Base 0E - Magenta + set color06 0E/F0/F0 # Base 0C - Cyan + set color07 D0/D0/FA # Base 05 - White + set color08 50/50/7A # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 F5/F5/FF # Base 07 - Bright White + set color16 FC/8D/28 # Base 09 + set color17 F0/03/EF # Base 0F + set color18 20/20/4A # Base 01 + set color19 30/30/5A # Base 02 + set color20 B0/B0/DA # Base 04 + set color21 E0/E0/FF # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg D0D0FA # foreground + put_template_custom Ph 00002A # background + put_template_custom Pi D0D0FA # bold color + put_template_custom Pj 30305A # selection color + put_template_custom Pk D0D0FA # selected text color + put_template_custom Pl D0D0FA # cursor + put_template_custom Pm 00002A # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 30305A + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 30305A + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param B0B0DA + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=30305A + set -U fish_color_selection white --bold --background=30305A + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme outrun-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-papercolor-dark.fish b/fish/functions/base16-papercolor-dark.fish new file mode 100644 index 0000000..48cf456 --- /dev/null +++ b/fish/functions/base16-papercolor-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# PaperColor Dark scheme by Jon Leopard (http://github.com/jonleopard) based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme) + +function base16-papercolor-dark -d "PaperColor Dark" + set color00 1c/1c/1c # Base 00 - Black + set color01 58/58/58 # Base 08 - Red + set color02 af/87/d7 # Base 0B - Green + set color03 af/d7/00 # Base 0A - Yellow + set color04 ff/5f/af # Base 0D - Blue + set color05 00/af/af # Base 0E - Magenta + set color06 ff/af/00 # Base 0C - Cyan + set color07 80/80/80 # Base 05 - White + set color08 d7/af/5f # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 d0/d0/d0 # Base 07 - Bright White + set color16 5f/af/5f # Base 09 + set color17 5f/87/87 # Base 0F + set color18 af/00/5f # Base 01 + set color19 5f/af/00 # Base 02 + set color20 5f/af/d7 # Base 04 + set color21 d7/87/5f # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 808080 # foreground + put_template_custom Ph 1c1c1c # background + put_template_custom Pi 808080 # bold color + put_template_custom Pj 5faf00 # selection color + put_template_custom Pk 808080 # selected text color + put_template_custom Pl 808080 # cursor + put_template_custom Pm 1c1c1c # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5faf00 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5faf00 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5fafd7 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5faf00 + set -U fish_color_selection white --bold --background=5faf00 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme papercolor-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-papercolor-light.fish b/fish/functions/base16-papercolor-light.fish new file mode 100644 index 0000000..877ef5e --- /dev/null +++ b/fish/functions/base16-papercolor-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# PaperColor Light scheme by Jon Leopard (http://github.com/jonleopard) based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme) + +function base16-papercolor-light -d "PaperColor Light" + set color00 ee/ee/ee # Base 00 - Black + set color01 bc/bc/bc # Base 08 - Red + set color02 87/00/af # Base 0B - Green + set color03 d7/00/87 # Base 0A - Yellow + set color04 d7/5f/00 # Base 0D - Blue + set color05 00/5f/af # Base 0E - Magenta + set color06 d7/5f/00 # Base 0C - Cyan + set color07 44/44/44 # Base 05 - White + set color08 5f/87/00 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 87/87/87 # Base 07 - Bright White + set color16 d7/00/00 # Base 09 + set color17 00/5f/87 # Base 0F + set color18 af/00/00 # Base 01 + set color19 00/87/00 # Base 02 + set color20 00/87/af # Base 04 + set color21 00/5f/87 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 444444 # foreground + put_template_custom Ph eeeeee # background + put_template_custom Pi 444444 # bold color + put_template_custom Pj 008700 # selection color + put_template_custom Pk 444444 # selected text color + put_template_custom Pl 444444 # cursor + put_template_custom Pm eeeeee # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 008700 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 008700 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 0087af + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=008700 + set -U fish_color_selection white --bold --background=008700 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme papercolor-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-paraiso.fish b/fish/functions/base16-paraiso.fish new file mode 100644 index 0000000..b95613f --- /dev/null +++ b/fish/functions/base16-paraiso.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Paraiso scheme by Jan T. Sott + +function base16-paraiso -d "Paraiso" + set color00 2f/1e/2e # Base 00 - Black + set color01 ef/61/55 # Base 08 - Red + set color02 48/b6/85 # Base 0B - Green + set color03 fe/c4/18 # Base 0A - Yellow + set color04 06/b6/ef # Base 0D - Blue + set color05 81/5b/a4 # Base 0E - Magenta + set color06 5b/c4/bf # Base 0C - Cyan + set color07 a3/9e/9b # Base 05 - White + set color08 77/6e/71 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 e7/e9/db # Base 07 - Bright White + set color16 f9/9b/15 # Base 09 + set color17 e9/6b/a8 # Base 0F + set color18 41/32/3f # Base 01 + set color19 4f/42/4c # Base 02 + set color20 8d/86/87 # Base 04 + set color21 b9/b6/b0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a39e9b # foreground + put_template_custom Ph 2f1e2e # background + put_template_custom Pi a39e9b # bold color + put_template_custom Pj 4f424c # selection color + put_template_custom Pk a39e9b # selected text color + put_template_custom Pl a39e9b # cursor + put_template_custom Pm 2f1e2e # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4f424c + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4f424c + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 8d8687 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4f424c + set -U fish_color_selection white --bold --background=4f424c + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme paraiso + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-pasque.fish b/fish/functions/base16-pasque.fish new file mode 100644 index 0000000..49cab30 --- /dev/null +++ b/fish/functions/base16-pasque.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Pasque scheme by Gabriel Fontes (https://github.com/Misterio77) + +function base16-pasque -d "Pasque" + set color00 27/1C/3A # Base 00 - Black + set color01 A9/22/58 # Base 08 - Red + set color02 C6/91/4B # Base 0B - Green + set color03 80/4e/ad # Base 0A - Yellow + set color04 8E/7D/C6 # Base 0D - Blue + set color05 95/3B/9D # Base 0E - Magenta + set color06 72/63/AA # Base 0C - Cyan + set color07 DE/DC/DF # Base 05 - White + set color08 5D/57/66 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 BB/AA/DD # Base 07 - Bright White + set color16 91/88/89 # Base 09 + set color17 59/32/5C # Base 0F + set color18 10/03/23 # Base 01 + set color19 3E/2D/5C # Base 02 + set color20 BE/BC/BF # Base 04 + set color21 ED/EA/EF # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg DEDCDF # foreground + put_template_custom Ph 271C3A # background + put_template_custom Pi DEDCDF # bold color + put_template_custom Pj 3E2D5C # selection color + put_template_custom Pk DEDCDF # selected text color + put_template_custom Pl DEDCDF # cursor + put_template_custom Pm 271C3A # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 3E2D5C + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 3E2D5C + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param BEBCBF + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=3E2D5C + set -U fish_color_selection white --bold --background=3E2D5C + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme pasque + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-phd.fish b/fish/functions/base16-phd.fish new file mode 100644 index 0000000..9c09c8d --- /dev/null +++ b/fish/functions/base16-phd.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# PhD scheme by Hennig Hasemann (http://leetless.de/vim.html) + +function base16-phd -d "PhD" + set color00 06/12/29 # Base 00 - Black + set color01 d0/73/46 # Base 08 - Red + set color02 99/bf/52 # Base 0B - Green + set color03 fb/d4/61 # Base 0A - Yellow + set color04 52/99/bf # Base 0D - Blue + set color05 99/89/cc # Base 0E - Magenta + set color06 72/b9/bf # Base 0C - Cyan + set color07 b8/bb/c2 # Base 05 - White + set color08 71/78/85 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 f0/a0/00 # Base 09 + set color17 b0/80/60 # Base 0F + set color18 2a/34/48 # Base 01 + set color19 4d/56/66 # Base 02 + set color20 9a/99/a3 # Base 04 + set color21 db/dd/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg b8bbc2 # foreground + put_template_custom Ph 061229 # background + put_template_custom Pi b8bbc2 # bold color + put_template_custom Pj 4d5666 # selection color + put_template_custom Pk b8bbc2 # selected text color + put_template_custom Pl b8bbc2 # cursor + put_template_custom Pm 061229 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 4d5666 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 4d5666 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9a99a3 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=4d5666 + set -U fish_color_selection white --bold --background=4d5666 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme phd + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-pico.fish b/fish/functions/base16-pico.fish new file mode 100644 index 0000000..e930d3f --- /dev/null +++ b/fish/functions/base16-pico.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Pico scheme by PICO-8 (http://www.lexaloffle.com/pico-8.php) + +function base16-pico -d "Pico" + set color00 00/00/00 # Base 00 - Black + set color01 ff/00/4d # Base 08 - Red + set color02 00/e7/56 # Base 0B - Green + set color03 ff/f0/24 # Base 0A - Yellow + set color04 83/76/9c # Base 0D - Blue + set color05 ff/77/a8 # Base 0E - Magenta + set color06 29/ad/ff # Base 0C - Cyan + set color07 5f/57/4f # Base 05 - White + set color08 00/87/51 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/f1/e8 # Base 07 - Bright White + set color16 ff/a3/00 # Base 09 + set color17 ff/cc/aa # Base 0F + set color18 1d/2b/53 # Base 01 + set color19 7e/25/53 # Base 02 + set color20 ab/52/36 # Base 04 + set color21 c2/c3/c7 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5f574f # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi 5f574f # bold color + put_template_custom Pj 7e2553 # selection color + put_template_custom Pk 5f574f # selected text color + put_template_custom Pl 5f574f # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 7e2553 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 7e2553 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param ab5236 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=7e2553 + set -U fish_color_selection white --bold --background=7e2553 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme pico + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-pinky.fish b/fish/functions/base16-pinky.fish new file mode 100644 index 0000000..cd3769f --- /dev/null +++ b/fish/functions/base16-pinky.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# pinky scheme by Benjamin (https://github.com/b3nj5m1n) + +function base16-pinky -d "pinky" + set color00 17/15/17 # Base 00 - Black + set color01 ff/a6/00 # Base 08 - Red + set color02 ff/00/66 # Base 0B - Green + set color03 20/df/6c # Base 0A - Yellow + set color04 00/ff/ff # Base 0D - Blue + set color05 00/7f/ff # Base 0E - Magenta + set color06 66/00/ff # Base 0C - Cyan + set color07 f5/f5/f5 # Base 05 - White + set color08 38/33/38 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f7/f3/f7 # Base 07 - Bright White + set color16 00/ff/66 # Base 09 + set color17 df/20/6c # Base 0F + set color18 1b/18/1b # Base 01 + set color19 1d/1b/1d # Base 02 + set color20 e7/db/db # Base 04 + set color21 ff/ff/ff # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg f5f5f5 # foreground + put_template_custom Ph 171517 # background + put_template_custom Pi f5f5f5 # bold color + put_template_custom Pj 1d1b1d # selection color + put_template_custom Pk f5f5f5 # selected text color + put_template_custom Pl f5f5f5 # cursor + put_template_custom Pm 171517 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 1d1b1d + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 1d1b1d + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param e7dbdb + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=1d1b1d + set -U fish_color_selection white --bold --background=1d1b1d + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme pinky + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-pop.fish b/fish/functions/base16-pop.fish new file mode 100644 index 0000000..a33fcda --- /dev/null +++ b/fish/functions/base16-pop.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Pop scheme by Chris Kempson (http://chriskempson.com) + +function base16-pop -d "Pop" + set color00 00/00/00 # Base 00 - Black + set color01 eb/00/8a # Base 08 - Red + set color02 37/b3/49 # Base 0B - Green + set color03 f8/ca/12 # Base 0A - Yellow + set color04 0e/5a/94 # Base 0D - Blue + set color05 b3/1e/8d # Base 0E - Magenta + set color06 00/aa/bb # Base 0C - Cyan + set color07 d0/d0/d0 # Base 05 - White + set color08 50/50/50 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 f2/93/33 # Base 09 + set color17 7a/2d/00 # Base 0F + set color18 20/20/20 # Base 01 + set color19 30/30/30 # Base 02 + set color20 b0/b0/b0 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d0d0d0 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi d0d0d0 # bold color + put_template_custom Pj 303030 # selection color + put_template_custom Pk d0d0d0 # selected text color + put_template_custom Pl d0d0d0 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 303030 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 303030 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b0b0b0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=303030 + set -U fish_color_selection white --bold --background=303030 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme pop + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-porple.fish b/fish/functions/base16-porple.fish new file mode 100644 index 0000000..70980db --- /dev/null +++ b/fish/functions/base16-porple.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Porple scheme by Niek den Breeje (https://github.com/AuditeMarlow) + +function base16-porple -d "Porple" + set color00 29/2c/36 # Base 00 - Black + set color01 f8/45/47 # Base 08 - Red + set color02 95/c7/6f # Base 0B - Green + set color03 ef/a1/6b # Base 0A - Yellow + set color04 84/85/ce # Base 0D - Blue + set color05 b7/49/89 # Base 0E - Magenta + set color06 64/87/8f # Base 0C - Cyan + set color07 d8/d8/d8 # Base 05 - White + set color08 65/56/8a # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/f8/f8 # Base 07 - Bright White + set color16 d2/8e/5d # Base 09 + set color17 98/68/41 # Base 0F + set color18 33/33/44 # Base 01 + set color19 47/41/60 # Base 02 + set color20 b8/b8/b8 # Base 04 + set color21 e8/e8/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d8d8d8 # foreground + put_template_custom Ph 292c36 # background + put_template_custom Pi d8d8d8 # bold color + put_template_custom Pj 474160 # selection color + put_template_custom Pk d8d8d8 # selected text color + put_template_custom Pl d8d8d8 # cursor + put_template_custom Pm 292c36 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 474160 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 474160 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b8b8b8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=474160 + set -U fish_color_selection white --bold --background=474160 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme porple + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-qualia.fish b/fish/functions/base16-qualia.fish new file mode 100644 index 0000000..2f65f3e --- /dev/null +++ b/fish/functions/base16-qualia.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Qualia scheme by isaacwhanson + +function base16-qualia -d "Qualia" + set color00 10/10/10 # Base 00 - Black + set color01 EF/A6/A2 # Base 08 - Red + set color02 80/C9/90 # Base 0B - Green + set color03 E6/A3/DC # Base 0A - Yellow + set color04 50/CA/CD # Base 0D - Blue + set color05 E0/AF/85 # Base 0E - Magenta + set color06 C8/C8/74 # Base 0C - Cyan + set color07 C0/C0/C0 # Base 05 - White + set color08 45/45/45 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 45/45/45 # Base 07 - Bright White + set color16 A3/B8/EF # Base 09 + set color17 80/80/80 # Base 0F + set color18 45/45/45 # Base 01 + set color19 45/45/45 # Base 02 + set color20 80/80/80 # Base 04 + set color21 C0/C0/C0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg C0C0C0 # foreground + put_template_custom Ph 101010 # background + put_template_custom Pi C0C0C0 # bold color + put_template_custom Pj 454545 # selection color + put_template_custom Pk C0C0C0 # selected text color + put_template_custom Pl C0C0C0 # cursor + put_template_custom Pm 101010 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 454545 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 454545 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 808080 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=454545 + set -U fish_color_selection white --bold --background=454545 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme qualia + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-railscasts.fish b/fish/functions/base16-railscasts.fish new file mode 100644 index 0000000..49abc0a --- /dev/null +++ b/fish/functions/base16-railscasts.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Railscasts scheme by Ryan Bates (http://railscasts.com) + +function base16-railscasts -d "Railscasts" + set color00 2b/2b/2b # Base 00 - Black + set color01 da/49/39 # Base 08 - Red + set color02 a5/c2/61 # Base 0B - Green + set color03 ff/c6/6d # Base 0A - Yellow + set color04 6d/9c/be # Base 0D - Blue + set color05 b6/b3/eb # Base 0E - Magenta + set color06 51/9f/50 # Base 0C - Cyan + set color07 e6/e1/dc # Base 05 - White + set color08 5a/64/7e # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f9/f7/f3 # Base 07 - Bright White + set color16 cc/78/33 # Base 09 + set color17 bc/94/58 # Base 0F + set color18 27/29/35 # Base 01 + set color19 3a/40/55 # Base 02 + set color20 d4/cf/c9 # Base 04 + set color21 f4/f1/ed # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e6e1dc # foreground + put_template_custom Ph 2b2b2b # background + put_template_custom Pi e6e1dc # bold color + put_template_custom Pj 3a4055 # selection color + put_template_custom Pk e6e1dc # selected text color + put_template_custom Pl e6e1dc # cursor + put_template_custom Pm 2b2b2b # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 3a4055 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 3a4055 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param d4cfc9 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=3a4055 + set -U fish_color_selection white --bold --background=3a4055 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme railscasts + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-rebecca.fish b/fish/functions/base16-rebecca.fish new file mode 100644 index 0000000..273f3e7 --- /dev/null +++ b/fish/functions/base16-rebecca.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Rebecca scheme by Victor Borja (http://github.com/vic) based on Rebecca Theme (http://github.com/vic/rebecca-theme) + +function base16-rebecca -d "Rebecca" + set color00 29/2a/44 # Base 00 - Black + set color01 a0/a0/c5 # Base 08 - Red + set color02 6d/fe/df # Base 0B - Green + set color03 ae/81/ff # Base 0A - Yellow + set color04 2d/e0/a7 # Base 0D - Blue + set color05 7a/a5/ff # Base 0E - Magenta + set color06 8e/ae/e0 # Base 0C - Cyan + set color07 f1/ef/f8 # Base 05 - White + set color08 66/66/99 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 53/49/5d # Base 07 - Bright White + set color16 ef/e4/a1 # Base 09 + set color17 ff/79/c6 # Base 0F + set color18 66/33/99 # Base 01 + set color19 38/3a/62 # Base 02 + set color20 a0/a0/c5 # Base 04 + set color21 cc/cc/ff # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg f1eff8 # foreground + put_template_custom Ph 292a44 # background + put_template_custom Pi f1eff8 # bold color + put_template_custom Pj 383a62 # selection color + put_template_custom Pk f1eff8 # selected text color + put_template_custom Pl f1eff8 # cursor + put_template_custom Pm 292a44 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 383a62 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 383a62 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a0a0c5 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=383a62 + set -U fish_color_selection white --bold --background=383a62 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme rebecca + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-rose-pine-dawn.fish b/fish/functions/base16-rose-pine-dawn.fish new file mode 100644 index 0000000..7ca2229 --- /dev/null +++ b/fish/functions/base16-rose-pine-dawn.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Rosé Pine Dawn scheme by Emilia Dunfelt <sayhi@dunfelt.se> + +function base16-rose-pine-dawn -d "Rosé Pine Dawn" + set color00 fa/f4/ed # Base 00 - Black + set color01 1f/1d/2e # Base 08 - Red + set color02 d7/82/7e # Base 0B - Green + set color03 ea/9d/34 # Base 0A - Yellow + set color04 56/94/9f # Base 0D - Blue + set color05 90/7a/a9 # Base 0E - Magenta + set color06 28/69/83 # Base 0C - Cyan + set color07 57/52/79 # Base 05 - White + set color08 98/93/a5 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 26/23/3a # Base 07 - Bright White + set color16 b4/63/7a # Base 09 + set color17 c5/c3/ce # Base 0F + set color18 ff/fa/f3 # Base 01 + set color19 f2/e9/de # Base 02 + set color20 6e/6a/86 # Base 04 + set color21 55/51/69 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 575279 # foreground + put_template_custom Ph faf4ed # background + put_template_custom Pi 575279 # bold color + put_template_custom Pj f2e9de # selection color + put_template_custom Pk 575279 # selected text color + put_template_custom Pl 575279 # cursor + put_template_custom Pm faf4ed # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion f2e9de + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment f2e9de + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6e6a86 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=f2e9de + set -U fish_color_selection white --bold --background=f2e9de + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme rose-pine-dawn + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-rose-pine-moon.fish b/fish/functions/base16-rose-pine-moon.fish new file mode 100644 index 0000000..d464f6f --- /dev/null +++ b/fish/functions/base16-rose-pine-moon.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Rosé Pine Moon scheme by Emilia Dunfelt <sayhi@dunfelt.se> + +function base16-rose-pine-moon -d "Rosé Pine Moon" + set color00 23/21/36 # Base 00 - Black + set color01 ec/eb/f0 # Base 08 - Red + set color02 ea/9a/97 # Base 0B - Green + set color03 f6/c1/77 # Base 0A - Yellow + set color04 9c/cf/d8 # Base 0D - Blue + set color05 c4/a7/e7 # Base 0E - Magenta + set color06 3e/8f/b0 # Base 0C - Cyan + set color07 e0/de/f4 # Base 05 - White + set color08 59/54/6d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 d9/d7/e1 # Base 07 - Bright White + set color16 eb/6f/92 # Base 09 + set color17 b9/b9/bc # Base 0F + set color18 2a/27/3f # Base 01 + set color19 39/35/52 # Base 02 + set color20 81/7c/9c # Base 04 + set color21 f5/f5/f7 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e0def4 # foreground + put_template_custom Ph 232136 # background + put_template_custom Pi e0def4 # bold color + put_template_custom Pj 393552 # selection color + put_template_custom Pk e0def4 # selected text color + put_template_custom Pl e0def4 # cursor + put_template_custom Pm 232136 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 393552 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 393552 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 817c9c + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=393552 + set -U fish_color_selection white --bold --background=393552 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme rose-pine-moon + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-rose-pine.fish b/fish/functions/base16-rose-pine.fish new file mode 100644 index 0000000..fe25166 --- /dev/null +++ b/fish/functions/base16-rose-pine.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Rosé Pine scheme by Emilia Dunfelt <sayhi@dunfelt.se> + +function base16-rose-pine -d "Rosé Pine" + set color00 19/17/24 # Base 00 - Black + set color01 e2/e1/e7 # Base 08 - Red + set color02 eb/bc/ba # Base 0B - Green + set color03 f6/c1/77 # Base 0A - Yellow + set color04 9c/cf/d8 # Base 0D - Blue + set color05 c4/a7/e7 # Base 0E - Magenta + set color06 31/74/8f # Base 0C - Cyan + set color07 e0/de/f4 # Base 05 - White + set color08 55/51/69 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 c5/c3/ce # Base 07 - Bright White + set color16 eb/6f/92 # Base 09 + set color17 e5/e5/e5 # Base 0F + set color18 1f/1d/2e # Base 01 + set color19 26/23/3a # Base 02 + set color20 6e/6a/86 # Base 04 + set color21 f0/f0/f3 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e0def4 # foreground + put_template_custom Ph 191724 # background + put_template_custom Pi e0def4 # bold color + put_template_custom Pj 26233a # selection color + put_template_custom Pk e0def4 # selected text color + put_template_custom Pl e0def4 # cursor + put_template_custom Pm 191724 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 26233a + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 26233a + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6e6a86 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=26233a + set -U fish_color_selection white --bold --background=26233a + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme rose-pine + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-sagelight.fish b/fish/functions/base16-sagelight.fish new file mode 100644 index 0000000..a2472b7 --- /dev/null +++ b/fish/functions/base16-sagelight.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Sagelight scheme by Carter Veldhuizen + +function base16-sagelight -d "Sagelight" + set color00 f8/f8/f8 # Base 00 - Black + set color01 fa/84/80 # Base 08 - Red + set color02 a0/d2/c8 # Base 0B - Green + set color03 ff/dc/61 # Base 0A - Yellow + set color04 a0/a7/d2 # Base 0D - Blue + set color05 c8/a0/d2 # Base 0E - Magenta + set color06 a2/d6/f5 # Base 0C - Cyan + set color07 38/38/38 # Base 05 - White + set color08 b8/b8/b8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 18/18/18 # Base 07 - Bright White + set color16 ff/aa/61 # Base 09 + set color17 d2/b2/a0 # Base 0F + set color18 e8/e8/e8 # Base 01 + set color19 d8/d8/d8 # Base 02 + set color20 58/58/58 # Base 04 + set color21 28/28/28 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 383838 # foreground + put_template_custom Ph f8f8f8 # background + put_template_custom Pi 383838 # bold color + put_template_custom Pj d8d8d8 # selection color + put_template_custom Pk 383838 # selected text color + put_template_custom Pl 383838 # cursor + put_template_custom Pm f8f8f8 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d8d8d8 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d8d8d8 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 585858 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d8d8d8 + set -U fish_color_selection white --bold --background=d8d8d8 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme sagelight + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-sakura.fish b/fish/functions/base16-sakura.fish new file mode 100644 index 0000000..9b13411 --- /dev/null +++ b/fish/functions/base16-sakura.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Sakura scheme by Misterio77 (http://github.com/Misterio77) + +function base16-sakura -d "Sakura" + set color00 fe/ed/f3 # Base 00 - Black + set color01 df/2d/52 # Base 08 - Red + set color02 2e/91/6d # Base 0B - Green + set color03 c2/94/61 # Base 0A - Yellow + set color04 00/6e/93 # Base 0D - Blue + set color05 5e/21/80 # Base 0E - Magenta + set color06 1d/89/91 # Base 0C - Cyan + set color07 56/44/48 # Base 05 - White + set color08 75/5f/64 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 33/29/2b # Base 07 - Bright White + set color16 f6/66/1e # Base 09 + set color17 ba/0d/35 # Base 0F + set color18 f8/e2/e7 # Base 01 + set color19 e0/cc/d1 # Base 02 + set color20 66/50/55 # Base 04 + set color21 42/38/3a # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 564448 # foreground + put_template_custom Ph feedf3 # background + put_template_custom Pi 564448 # bold color + put_template_custom Pj e0ccd1 # selection color + put_template_custom Pk 564448 # selected text color + put_template_custom Pl 564448 # cursor + put_template_custom Pm feedf3 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion e0ccd1 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment e0ccd1 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 665055 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=e0ccd1 + set -U fish_color_selection white --bold --background=e0ccd1 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme sakura + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-sandcastle.fish b/fish/functions/base16-sandcastle.fish new file mode 100644 index 0000000..ee56da4 --- /dev/null +++ b/fish/functions/base16-sandcastle.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Sandcastle scheme by George Essig (https://github.com/gessig) + +function base16-sandcastle -d "Sandcastle" + set color00 28/2c/34 # Base 00 - Black + set color01 83/a5/98 # Base 08 - Red + set color02 52/8b/8b # Base 0B - Green + set color03 a0/7e/3b # Base 0A - Yellow + set color04 83/a5/98 # Base 0D - Blue + set color05 d7/5f/5f # Base 0E - Magenta + set color06 83/a5/98 # Base 0C - Cyan + set color07 a8/99/84 # Base 05 - White + set color08 66/5c/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fd/f4/c1 # Base 07 - Bright White + set color16 a0/7e/3b # Base 09 + set color17 a8/73/22 # Base 0F + set color18 2c/32/3b # Base 01 + set color19 3e/44/51 # Base 02 + set color20 92/83/74 # Base 04 + set color21 d5/c4/a1 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a89984 # foreground + put_template_custom Ph 282c34 # background + put_template_custom Pi a89984 # bold color + put_template_custom Pj 3e4451 # selection color + put_template_custom Pk a89984 # selected text color + put_template_custom Pl a89984 # cursor + put_template_custom Pm 282c34 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 3e4451 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 3e4451 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 928374 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=3e4451 + set -U fish_color_selection white --bold --background=3e4451 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme sandcastle + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-seti.fish b/fish/functions/base16-seti.fish new file mode 100644 index 0000000..baeba25 --- /dev/null +++ b/fish/functions/base16-seti.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Seti UI scheme by + +function base16-seti -d "Seti UI" + set color00 15/17/18 # Base 00 - Black + set color01 Cd/3f/45 # Base 08 - Red + set color02 9f/ca/56 # Base 0B - Green + set color03 e6/cd/69 # Base 0A - Yellow + set color04 55/b5/db # Base 0D - Blue + set color05 a0/74/c4 # Base 0E - Magenta + set color06 55/db/be # Base 0C - Cyan + set color07 d6/d6/d6 # Base 05 - White + set color08 41/53/5B # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 db/7b/55 # Base 09 + set color17 8a/55/3f # Base 0F + set color18 28/2a/2b # Base 01 + set color19 3B/75/8C # Base 02 + set color20 43/a5/d5 # Base 04 + set color21 ee/ee/ee # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d6d6d6 # foreground + put_template_custom Ph 151718 # background + put_template_custom Pi d6d6d6 # bold color + put_template_custom Pj 3B758C # selection color + put_template_custom Pk d6d6d6 # selected text color + put_template_custom Pl d6d6d6 # cursor + put_template_custom Pm 151718 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 3B758C + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 3B758C + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 43a5d5 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=3B758C + set -U fish_color_selection white --bold --background=3B758C + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme seti + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-shades-of-purple.fish b/fish/functions/base16-shades-of-purple.fish new file mode 100644 index 0000000..9f00a4a --- /dev/null +++ b/fish/functions/base16-shades-of-purple.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Shades of Purple scheme by Iolar Demartini Junior (http://github.com/demartini) based on Shades of Purple Theme (https://github.com/ahmadawais/shades-of-purple-vscode). + +function base16-shades-of-purple -d "Shades of Purple" + set color00 1e/1e/3f # Base 00 - Black + set color01 d9/04/29 # Base 08 - Red + set color02 3a/d9/00 # Base 0B - Green + set color03 ff/e7/00 # Base 0A - Yellow + set color04 69/43/ff # Base 0D - Blue + set color05 ff/2c/70 # Base 0E - Magenta + set color06 00/c5/c7 # Base 0C - Cyan + set color07 c7/c7/c7 # Base 05 - White + set color08 80/80/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 f9/2a/1c # Base 09 + set color17 79/e8/fb # Base 0F + set color18 43/d4/26 # Base 01 + set color19 f1/d0/00 # Base 02 + set color20 68/71/ff # Base 04 + set color21 ff/77/ff # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c7c7c7 # foreground + put_template_custom Ph 1e1e3f # background + put_template_custom Pi c7c7c7 # bold color + put_template_custom Pj f1d000 # selection color + put_template_custom Pk c7c7c7 # selected text color + put_template_custom Pl c7c7c7 # cursor + put_template_custom Pm 1e1e3f # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion f1d000 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment f1d000 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6871ff + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=f1d000 + set -U fish_color_selection white --bold --background=f1d000 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme shades-of-purple + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-shapeshifter.fish b/fish/functions/base16-shapeshifter.fish new file mode 100644 index 0000000..7e47fcb --- /dev/null +++ b/fish/functions/base16-shapeshifter.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Shapeshifter scheme by Tyler Benziger (http://tybenz.com) + +function base16-shapeshifter -d "Shapeshifter" + set color00 f9/f9/f9 # Base 00 - Black + set color01 e9/2f/2f # Base 08 - Red + set color02 0e/d8/39 # Base 0B - Green + set color03 dd/dd/13 # Base 0A - Yellow + set color04 3b/48/e3 # Base 0D - Blue + set color05 f9/96/e2 # Base 0E - Magenta + set color06 23/ed/da # Base 0C - Cyan + set color07 10/20/15 # Base 05 - White + set color08 55/55/55 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 00/00/00 # Base 07 - Bright White + set color16 e0/94/48 # Base 09 + set color17 69/54/2d # Base 0F + set color18 e0/e0/e0 # Base 01 + set color19 ab/ab/ab # Base 02 + set color20 34/34/34 # Base 04 + set color21 04/04/04 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 102015 # foreground + put_template_custom Ph f9f9f9 # background + put_template_custom Pi 102015 # bold color + put_template_custom Pj ababab # selection color + put_template_custom Pk 102015 # selected text color + put_template_custom Pl 102015 # cursor + put_template_custom Pm f9f9f9 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion ababab + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment ababab + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 343434 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=ababab + set -U fish_color_selection white --bold --background=ababab + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme shapeshifter + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-silk-dark.fish b/fish/functions/base16-silk-dark.fish new file mode 100644 index 0000000..8f6010a --- /dev/null +++ b/fish/functions/base16-silk-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Silk Dark scheme by Gabriel Fontes (https://github.com/Misterio77) + +function base16-silk-dark -d "Silk Dark" + set color00 0e/3c/46 # Base 00 - Black + set color01 fb/69/53 # Base 08 - Red + set color02 73/d8/ad # Base 0B - Green + set color03 fc/e3/80 # Base 0A - Yellow + set color04 46/bd/dd # Base 0D - Blue + set color05 75/6b/8a # Base 0E - Magenta + set color06 3f/b2/b9 # Base 0C - Cyan + set color07 C7/DB/DD # Base 05 - White + set color08 58/70/73 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 D2/FA/FF # Base 07 - Bright White + set color16 fc/ab/74 # Base 09 + set color17 9b/64/7b # Base 0F + set color18 1D/49/4E # Base 01 + set color19 2A/50/54 # Base 02 + set color20 9D/C8/CD # Base 04 + set color21 CB/F2/F7 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg C7DBDD # foreground + put_template_custom Ph 0e3c46 # background + put_template_custom Pi C7DBDD # bold color + put_template_custom Pj 2A5054 # selection color + put_template_custom Pk C7DBDD # selected text color + put_template_custom Pl C7DBDD # cursor + put_template_custom Pm 0e3c46 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 2A5054 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 2A5054 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9DC8CD + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=2A5054 + set -U fish_color_selection white --bold --background=2A5054 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme silk-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-silk-light.fish b/fish/functions/base16-silk-light.fish new file mode 100644 index 0000000..66ad2d1 --- /dev/null +++ b/fish/functions/base16-silk-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Silk Light scheme by Gabriel Fontes (https://github.com/Misterio77) + +function base16-silk-light -d "Silk Light" + set color00 E9/F1/EF # Base 00 - Black + set color01 CF/43/2E # Base 08 - Red + set color02 6C/A3/8C # Base 0B - Green + set color03 CF/AD/25 # Base 0A - Yellow + set color04 39/AA/C9 # Base 0D - Blue + set color05 6E/65/82 # Base 0E - Magenta + set color06 32/9C/A2 # Base 0C - Cyan + set color07 38/51/56 # Base 05 - White + set color08 5C/78/7B # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 D2/FA/FF # Base 07 - Bright White + set color16 D2/7F/46 # Base 09 + set color17 86/53/69 # Base 0F + set color18 CC/D4/D3 # Base 01 + set color19 90/B7/B6 # Base 02 + set color20 4B/5B/5F # Base 04 + set color21 0e/3c/46 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 385156 # foreground + put_template_custom Ph E9F1EF # background + put_template_custom Pi 385156 # bold color + put_template_custom Pj 90B7B6 # selection color + put_template_custom Pk 385156 # selected text color + put_template_custom Pl 385156 # cursor + put_template_custom Pm E9F1EF # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 90B7B6 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 90B7B6 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 4B5B5F + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=90B7B6 + set -U fish_color_selection white --bold --background=90B7B6 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme silk-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-snazzy.fish b/fish/functions/base16-snazzy.fish new file mode 100644 index 0000000..7fb8370 --- /dev/null +++ b/fish/functions/base16-snazzy.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Snazzy scheme by Chawye Hsu (https://github.com/chawyehsu) based on Hyper Snazzy Theme (https://github.com/sindresorhus/hyper-snazzy) + +function base16-snazzy -d "Snazzy" + set color00 28/2a/36 # Base 00 - Black + set color01 ff/5c/57 # Base 08 - Red + set color02 5a/f7/8e # Base 0B - Green + set color03 f3/f9/9d # Base 0A - Yellow + set color04 57/c7/ff # Base 0D - Blue + set color05 ff/6a/c1 # Base 0E - Magenta + set color06 9a/ed/fe # Base 0C - Cyan + set color07 e2/e4/e5 # Base 05 - White + set color08 78/78/7e # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f1/f1/f0 # Base 07 - Bright White + set color16 ff/9f/43 # Base 09 + set color17 b2/64/3c # Base 0F + set color18 34/35/3e # Base 01 + set color19 43/45/4f # Base 02 + set color20 a5/a5/a9 # Base 04 + set color21 ef/f0/eb # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg e2e4e5 # foreground + put_template_custom Ph 282a36 # background + put_template_custom Pi e2e4e5 # bold color + put_template_custom Pj 43454f # selection color + put_template_custom Pk e2e4e5 # selected text color + put_template_custom Pl e2e4e5 # cursor + put_template_custom Pm 282a36 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 43454f + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 43454f + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a5a5a9 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=43454f + set -U fish_color_selection white --bold --background=43454f + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme snazzy + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-solarflare-light.fish b/fish/functions/base16-solarflare-light.fish new file mode 100644 index 0000000..af81a22 --- /dev/null +++ b/fish/functions/base16-solarflare-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Solar Flare Light scheme by Chuck Harmston (https://chuck.harmston.ch) + +function base16-solarflare-light -d "Solar Flare Light" + set color00 F5/F7/FA # Base 00 - Black + set color01 EF/52/53 # Base 08 - Red + set color02 7C/C8/44 # Base 0B - Green + set color03 E4/B5/1C # Base 0A - Yellow + set color04 33/B5/E1 # Base 0D - Blue + set color05 A3/63/D5 # Base 0E - Magenta + set color06 52/CB/B0 # Base 0C - Cyan + set color07 58/68/75 # Base 05 - White + set color08 85/93/9E # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 18/26/2F # Base 07 - Bright White + set color16 E6/6B/2B # Base 09 + set color17 D7/3C/9A # Base 0F + set color18 E8/E9/ED # Base 01 + set color19 A6/AF/B8 # Base 02 + set color20 66/75/81 # Base 04 + set color21 22/2E/38 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 586875 # foreground + put_template_custom Ph F5F7FA # background + put_template_custom Pi 586875 # bold color + put_template_custom Pj A6AFB8 # selection color + put_template_custom Pk 586875 # selected text color + put_template_custom Pl 586875 # cursor + put_template_custom Pm F5F7FA # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion A6AFB8 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment A6AFB8 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 667581 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=A6AFB8 + set -U fish_color_selection white --bold --background=A6AFB8 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme solarflare-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-solarflare.fish b/fish/functions/base16-solarflare.fish new file mode 100644 index 0000000..53dbada --- /dev/null +++ b/fish/functions/base16-solarflare.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Solar Flare scheme by Chuck Harmston (https://chuck.harmston.ch) + +function base16-solarflare -d "Solar Flare" + set color00 18/26/2F # Base 00 - Black + set color01 EF/52/53 # Base 08 - Red + set color02 7C/C8/44 # Base 0B - Green + set color03 E4/B5/1C # Base 0A - Yellow + set color04 33/B5/E1 # Base 0D - Blue + set color05 A3/63/D5 # Base 0E - Magenta + set color06 52/CB/B0 # Base 0C - Cyan + set color07 A6/AF/B8 # Base 05 - White + set color08 66/75/81 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 F5/F7/FA # Base 07 - Bright White + set color16 E6/6B/2B # Base 09 + set color17 D7/3C/9A # Base 0F + set color18 22/2E/38 # Base 01 + set color19 58/68/75 # Base 02 + set color20 85/93/9E # Base 04 + set color21 E8/E9/ED # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg A6AFB8 # foreground + put_template_custom Ph 18262F # background + put_template_custom Pi A6AFB8 # bold color + put_template_custom Pj 586875 # selection color + put_template_custom Pk A6AFB8 # selected text color + put_template_custom Pl A6AFB8 # cursor + put_template_custom Pm 18262F # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 586875 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 586875 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 85939E + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=586875 + set -U fish_color_selection white --bold --background=586875 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme solarflare + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-solarized-dark.fish b/fish/functions/base16-solarized-dark.fish new file mode 100644 index 0000000..b4be1ca --- /dev/null +++ b/fish/functions/base16-solarized-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Solarized Dark scheme by Ethan Schoonover (modified by aramisgithub) + +function base16-solarized-dark -d "Solarized Dark" + set color00 00/2b/36 # Base 00 - Black + set color01 dc/32/2f # Base 08 - Red + set color02 85/99/00 # Base 0B - Green + set color03 b5/89/00 # Base 0A - Yellow + set color04 26/8b/d2 # Base 0D - Blue + set color05 6c/71/c4 # Base 0E - Magenta + set color06 2a/a1/98 # Base 0C - Cyan + set color07 93/a1/a1 # Base 05 - White + set color08 65/7b/83 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fd/f6/e3 # Base 07 - Bright White + set color16 cb/4b/16 # Base 09 + set color17 d3/36/82 # Base 0F + set color18 07/36/42 # Base 01 + set color19 58/6e/75 # Base 02 + set color20 83/94/96 # Base 04 + set color21 ee/e8/d5 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 93a1a1 # foreground + put_template_custom Ph 002b36 # background + put_template_custom Pi 93a1a1 # bold color + put_template_custom Pj 586e75 # selection color + put_template_custom Pk 93a1a1 # selected text color + put_template_custom Pl 93a1a1 # cursor + put_template_custom Pm 002b36 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 586e75 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 586e75 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 839496 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=586e75 + set -U fish_color_selection white --bold --background=586e75 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme solarized-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-solarized-light.fish b/fish/functions/base16-solarized-light.fish new file mode 100644 index 0000000..7a0710c --- /dev/null +++ b/fish/functions/base16-solarized-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Solarized Light scheme by Ethan Schoonover (modified by aramisgithub) + +function base16-solarized-light -d "Solarized Light" + set color00 fd/f6/e3 # Base 00 - Black + set color01 dc/32/2f # Base 08 - Red + set color02 85/99/00 # Base 0B - Green + set color03 b5/89/00 # Base 0A - Yellow + set color04 26/8b/d2 # Base 0D - Blue + set color05 6c/71/c4 # Base 0E - Magenta + set color06 2a/a1/98 # Base 0C - Cyan + set color07 58/6e/75 # Base 05 - White + set color08 83/94/96 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 00/2b/36 # Base 07 - Bright White + set color16 cb/4b/16 # Base 09 + set color17 d3/36/82 # Base 0F + set color18 ee/e8/d5 # Base 01 + set color19 93/a1/a1 # Base 02 + set color20 65/7b/83 # Base 04 + set color21 07/36/42 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 586e75 # foreground + put_template_custom Ph fdf6e3 # background + put_template_custom Pi 586e75 # bold color + put_template_custom Pj 93a1a1 # selection color + put_template_custom Pk 586e75 # selected text color + put_template_custom Pl 586e75 # cursor + put_template_custom Pm fdf6e3 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 93a1a1 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 93a1a1 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 657b83 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=93a1a1 + set -U fish_color_selection white --bold --background=93a1a1 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme solarized-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-spacemacs.fish b/fish/functions/base16-spacemacs.fish new file mode 100644 index 0000000..100f223 --- /dev/null +++ b/fish/functions/base16-spacemacs.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Spacemacs scheme by Nasser Alshammari (https://github.com/nashamri/spacemacs-theme) + +function base16-spacemacs -d "Spacemacs" + set color00 1f/20/22 # Base 00 - Black + set color01 f2/24/1f # Base 08 - Red + set color02 67/b1/1d # Base 0B - Green + set color03 b1/95/1d # Base 0A - Yellow + set color04 4f/97/d7 # Base 0D - Blue + set color05 a3/1d/b1 # Base 0E - Magenta + set color06 2d/95/74 # Base 0C - Cyan + set color07 a3/a3/a3 # Base 05 - White + set color08 58/58/58 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/f8/f8 # Base 07 - Bright White + set color16 ff/a5/00 # Base 09 + set color17 b0/30/60 # Base 0F + set color18 28/28/28 # Base 01 + set color19 44/41/55 # Base 02 + set color20 b8/b8/b8 # Base 04 + set color21 e8/e8/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a3a3a3 # foreground + put_template_custom Ph 1f2022 # background + put_template_custom Pi a3a3a3 # bold color + put_template_custom Pj 444155 # selection color + put_template_custom Pk a3a3a3 # selected text color + put_template_custom Pl a3a3a3 # cursor + put_template_custom Pm 1f2022 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 444155 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 444155 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b8b8b8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=444155 + set -U fish_color_selection white --bold --background=444155 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme spacemacs + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-summercamp.fish b/fish/functions/base16-summercamp.fish new file mode 100644 index 0000000..f76f86b --- /dev/null +++ b/fish/functions/base16-summercamp.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# summercamp scheme by zoe firi (zoefiri.github.io) + +function base16-summercamp -d "summercamp" + set color00 1c/18/10 # Base 00 - Black + set color01 e3/51/42 # Base 08 - Red + set color02 5c/eb/5a # Base 0B - Green + set color03 f2/ff/27 # Base 0A - Yellow + set color04 48/9b/f0 # Base 0D - Blue + set color05 FF/80/80 # Base 0E - Magenta + set color06 5a/eb/bc # Base 0C - Cyan + set color07 73/6e/55 # Base 05 - White + set color08 50/4b/38 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f8/f5/de # Base 07 - Bright White + set color16 fb/a1/1b # Base 09 + set color17 F6/9B/E7 # Base 0F + set color18 2a/26/1c # Base 01 + set color19 3a/35/27 # Base 02 + set color20 5f/5b/45 # Base 04 + set color21 ba/b6/96 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 736e55 # foreground + put_template_custom Ph 1c1810 # background + put_template_custom Pi 736e55 # bold color + put_template_custom Pj 3a3527 # selection color + put_template_custom Pk 736e55 # selected text color + put_template_custom Pl 736e55 # cursor + put_template_custom Pm 1c1810 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 3a3527 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 3a3527 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 5f5b45 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=3a3527 + set -U fish_color_selection white --bold --background=3a3527 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme summercamp + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-summerfruit-dark.fish b/fish/functions/base16-summerfruit-dark.fish new file mode 100644 index 0000000..4304dd1 --- /dev/null +++ b/fish/functions/base16-summerfruit-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Summerfruit Dark scheme by Christopher Corley (http://christop.club/) + +function base16-summerfruit-dark -d "Summerfruit Dark" + set color00 15/15/15 # Base 00 - Black + set color01 FF/00/86 # Base 08 - Red + set color02 00/C9/18 # Base 0B - Green + set color03 AB/A8/00 # Base 0A - Yellow + set color04 37/77/E6 # Base 0D - Blue + set color05 AD/00/A1 # Base 0E - Magenta + set color06 1F/AA/AA # Base 0C - Cyan + set color07 D0/D0/D0 # Base 05 - White + set color08 50/50/50 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 FF/FF/FF # Base 07 - Bright White + set color16 FD/89/00 # Base 09 + set color17 CC/66/33 # Base 0F + set color18 20/20/20 # Base 01 + set color19 30/30/30 # Base 02 + set color20 B0/B0/B0 # Base 04 + set color21 E0/E0/E0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg D0D0D0 # foreground + put_template_custom Ph 151515 # background + put_template_custom Pi D0D0D0 # bold color + put_template_custom Pj 303030 # selection color + put_template_custom Pk D0D0D0 # selected text color + put_template_custom Pl D0D0D0 # cursor + put_template_custom Pm 151515 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 303030 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 303030 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param B0B0B0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=303030 + set -U fish_color_selection white --bold --background=303030 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme summerfruit-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-summerfruit-light.fish b/fish/functions/base16-summerfruit-light.fish new file mode 100644 index 0000000..c5ae5c0 --- /dev/null +++ b/fish/functions/base16-summerfruit-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Summerfruit Light scheme by Christopher Corley (http://christop.club/) + +function base16-summerfruit-light -d "Summerfruit Light" + set color00 FF/FF/FF # Base 00 - Black + set color01 FF/00/86 # Base 08 - Red + set color02 00/C9/18 # Base 0B - Green + set color03 AB/A8/00 # Base 0A - Yellow + set color04 37/77/E6 # Base 0D - Blue + set color05 AD/00/A1 # Base 0E - Magenta + set color06 1F/AA/AA # Base 0C - Cyan + set color07 10/10/10 # Base 05 - White + set color08 B0/B0/B0 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 20/20/20 # Base 07 - Bright White + set color16 FD/89/00 # Base 09 + set color17 CC/66/33 # Base 0F + set color18 E0/E0/E0 # Base 01 + set color19 D0/D0/D0 # Base 02 + set color20 00/00/00 # Base 04 + set color21 15/15/15 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 101010 # foreground + put_template_custom Ph FFFFFF # background + put_template_custom Pi 101010 # bold color + put_template_custom Pj D0D0D0 # selection color + put_template_custom Pk 101010 # selected text color + put_template_custom Pl 101010 # cursor + put_template_custom Pm FFFFFF # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion D0D0D0 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment D0D0D0 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 000000 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=D0D0D0 + set -U fish_color_selection white --bold --background=D0D0D0 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme summerfruit-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-synth-midnight-dark.fish b/fish/functions/base16-synth-midnight-dark.fish new file mode 100644 index 0000000..a315e54 --- /dev/null +++ b/fish/functions/base16-synth-midnight-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Synth Midnight Terminal Dark scheme by Michaël Ball (http://github.com/michael-ball/) + +function base16-synth-midnight-dark -d "Synth Midnight Terminal Dark" + set color00 05/06/08 # Base 00 - Black + set color01 b5/3b/50 # Base 08 - Red + set color02 06/ea/61 # Base 0B - Green + set color03 c9/d3/64 # Base 0A - Yellow + set color04 03/ae/ff # Base 0D - Blue + set color05 ea/5c/e2 # Base 0E - Magenta + set color06 42/ff/f9 # Base 0C - Cyan + set color07 c1/c3/c4 # Base 05 - White + set color08 47/48/49 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 dd/df/e0 # Base 07 - Bright White + set color16 ea/77/0d # Base 09 + set color17 cd/63/20 # Base 0F + set color18 1a/1b/1c # Base 01 + set color19 28/29/2a # Base 02 + set color20 a3/a5/a6 # Base 04 + set color21 cf/d1/d2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c1c3c4 # foreground + put_template_custom Ph 050608 # background + put_template_custom Pi c1c3c4 # bold color + put_template_custom Pj 28292a # selection color + put_template_custom Pk c1c3c4 # selected text color + put_template_custom Pl c1c3c4 # cursor + put_template_custom Pm 050608 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 28292a + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 28292a + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a3a5a6 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=28292a + set -U fish_color_selection white --bold --background=28292a + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme synth-midnight-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-synth-midnight-light.fish b/fish/functions/base16-synth-midnight-light.fish new file mode 100644 index 0000000..e555bbb --- /dev/null +++ b/fish/functions/base16-synth-midnight-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Synth Midnight Terminal Light scheme by Michaël Ball (http://github.com/michael-ball/) + +function base16-synth-midnight-light -d "Synth Midnight Terminal Light" + set color00 dd/df/e0 # Base 00 - Black + set color01 b5/3b/50 # Base 08 - Red + set color02 06/ea/61 # Base 0B - Green + set color03 c9/d3/64 # Base 0A - Yellow + set color04 03/ae/ff # Base 0D - Blue + set color05 ea/5c/e2 # Base 0E - Magenta + set color06 42/ff/f9 # Base 0C - Cyan + set color07 28/29/2a # Base 05 - White + set color08 a3/a5/a6 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 05/06/08 # Base 07 - Bright White + set color16 ea/77/0d # Base 09 + set color17 cd/63/20 # Base 0F + set color18 cf/d1/d2 # Base 01 + set color19 c1/c3/c4 # Base 02 + set color20 47/48/49 # Base 04 + set color21 1a/1b/1c # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 28292a # foreground + put_template_custom Ph dddfe0 # background + put_template_custom Pi 28292a # bold color + put_template_custom Pj c1c3c4 # selection color + put_template_custom Pk 28292a # selected text color + put_template_custom Pl 28292a # cursor + put_template_custom Pm dddfe0 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion c1c3c4 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment c1c3c4 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 474849 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=c1c3c4 + set -U fish_color_selection white --bold --background=c1c3c4 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme synth-midnight-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-tango.fish b/fish/functions/base16-tango.fish new file mode 100644 index 0000000..d9bef59 --- /dev/null +++ b/fish/functions/base16-tango.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Tango scheme by @Schnouki, based on the Tango Desktop Project + +function base16-tango -d "Tango" + set color00 2e/34/36 # Base 00 - Black + set color01 cc/00/00 # Base 08 - Red + set color02 4e/9a/06 # Base 0B - Green + set color03 c4/a0/00 # Base 0A - Yellow + set color04 34/65/a4 # Base 0D - Blue + set color05 75/50/7b # Base 0E - Magenta + set color06 06/98/9a # Base 0C - Cyan + set color07 d3/d7/cf # Base 05 - White + set color08 55/57/53 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ee/ee/ec # Base 07 - Bright White + set color16 ef/29/29 # Base 09 + set color17 34/e2/e2 # Base 0F + set color18 8a/e2/34 # Base 01 + set color19 fc/e9/4f # Base 02 + set color20 72/9f/cf # Base 04 + set color21 ad/7f/a8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d3d7cf # foreground + put_template_custom Ph 2e3436 # background + put_template_custom Pi d3d7cf # bold color + put_template_custom Pj fce94f # selection color + put_template_custom Pk d3d7cf # selected text color + put_template_custom Pl d3d7cf # cursor + put_template_custom Pm 2e3436 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion fce94f + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment fce94f + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 729fcf + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=fce94f + set -U fish_color_selection white --bold --background=fce94f + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme tango + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-tender.fish b/fish/functions/base16-tender.fish new file mode 100644 index 0000000..47e18e6 --- /dev/null +++ b/fish/functions/base16-tender.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# tender scheme by Jacobo Tabernero (https://github/com/jacoborus/tender.vim) + +function base16-tender -d "tender" + set color00 28/28/28 # Base 00 - Black + set color01 f4/37/53 # Base 08 - Red + set color02 c9/d0/5c # Base 0B - Green + set color03 ff/c2/4b # Base 0A - Yellow + set color04 b3/de/ef # Base 0D - Blue + set color05 d3/b9/87 # Base 0E - Magenta + set color06 73/ce/f4 # Base 0C - Cyan + set color07 ee/ee/ee # Base 05 - White + set color08 1d/1d/1d # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 dc/96/56 # Base 09 + set color17 a1/69/46 # Base 0F + set color18 38/38/38 # Base 01 + set color19 48/48/48 # Base 02 + set color20 b8/b8/b8 # Base 04 + set color21 e8/e8/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg eeeeee # foreground + put_template_custom Ph 282828 # background + put_template_custom Pi eeeeee # bold color + put_template_custom Pj 484848 # selection color + put_template_custom Pk eeeeee # selected text color + put_template_custom Pl eeeeee # cursor + put_template_custom Pm 282828 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 484848 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 484848 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b8b8b8 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=484848 + set -U fish_color_selection white --bold --background=484848 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme tender + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-tomorrow-night-eighties.fish b/fish/functions/base16-tomorrow-night-eighties.fish new file mode 100644 index 0000000..7ce16e8 --- /dev/null +++ b/fish/functions/base16-tomorrow-night-eighties.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Tomorrow Night scheme by Chris Kempson (http://chriskempson.com) + +function base16-tomorrow-night-eighties -d "Tomorrow Night" + set color00 2d/2d/2d # Base 00 - Black + set color01 f2/77/7a # Base 08 - Red + set color02 99/cc/99 # Base 0B - Green + set color03 ff/cc/66 # Base 0A - Yellow + set color04 66/99/cc # Base 0D - Blue + set color05 cc/99/cc # Base 0E - Magenta + set color06 66/cc/cc # Base 0C - Cyan + set color07 cc/cc/cc # Base 05 - White + set color08 99/99/99 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 f9/91/57 # Base 09 + set color17 a3/68/5a # Base 0F + set color18 39/39/39 # Base 01 + set color19 51/51/51 # Base 02 + set color20 b4/b7/b4 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cccccc # foreground + put_template_custom Ph 2d2d2d # background + put_template_custom Pi cccccc # bold color + put_template_custom Pj 515151 # selection color + put_template_custom Pk cccccc # selected text color + put_template_custom Pl cccccc # cursor + put_template_custom Pm 2d2d2d # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 515151 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 515151 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b4b7b4 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=515151 + set -U fish_color_selection white --bold --background=515151 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme tomorrow-night-eighties + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-tomorrow-night.fish b/fish/functions/base16-tomorrow-night.fish new file mode 100644 index 0000000..7284570 --- /dev/null +++ b/fish/functions/base16-tomorrow-night.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Tomorrow Night scheme by Chris Kempson (http://chriskempson.com) + +function base16-tomorrow-night -d "Tomorrow Night" + set color00 1d/1f/21 # Base 00 - Black + set color01 cc/66/66 # Base 08 - Red + set color02 b5/bd/68 # Base 0B - Green + set color03 f0/c6/74 # Base 0A - Yellow + set color04 81/a2/be # Base 0D - Blue + set color05 b2/94/bb # Base 0E - Magenta + set color06 8a/be/b7 # Base 0C - Cyan + set color07 c5/c8/c6 # Base 05 - White + set color08 96/98/96 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 de/93/5f # Base 09 + set color17 a3/68/5a # Base 0F + set color18 28/2a/2e # Base 01 + set color19 37/3b/41 # Base 02 + set color20 b4/b7/b4 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c5c8c6 # foreground + put_template_custom Ph 1d1f21 # background + put_template_custom Pi c5c8c6 # bold color + put_template_custom Pj 373b41 # selection color + put_template_custom Pk c5c8c6 # selected text color + put_template_custom Pl c5c8c6 # cursor + put_template_custom Pm 1d1f21 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 373b41 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 373b41 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b4b7b4 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=373b41 + set -U fish_color_selection white --bold --background=373b41 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme tomorrow-night + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-tomorrow.fish b/fish/functions/base16-tomorrow.fish new file mode 100644 index 0000000..4ce6499 --- /dev/null +++ b/fish/functions/base16-tomorrow.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Tomorrow scheme by Chris Kempson (http://chriskempson.com) + +function base16-tomorrow -d "Tomorrow" + set color00 ff/ff/ff # Base 00 - Black + set color01 c8/28/29 # Base 08 - Red + set color02 71/8c/00 # Base 0B - Green + set color03 ea/b7/00 # Base 0A - Yellow + set color04 42/71/ae # Base 0D - Blue + set color05 89/59/a8 # Base 0E - Magenta + set color06 3e/99/9f # Base 0C - Cyan + set color07 4d/4d/4c # Base 05 - White + set color08 8e/90/8c # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 1d/1f/21 # Base 07 - Bright White + set color16 f5/87/1f # Base 09 + set color17 a3/68/5a # Base 0F + set color18 e0/e0/e0 # Base 01 + set color19 d6/d6/d6 # Base 02 + set color20 96/98/96 # Base 04 + set color21 28/2a/2e # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 4d4d4c # foreground + put_template_custom Ph ffffff # background + put_template_custom Pi 4d4d4c # bold color + put_template_custom Pj d6d6d6 # selection color + put_template_custom Pk 4d4d4c # selected text color + put_template_custom Pl 4d4d4c # cursor + put_template_custom Pm ffffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d6d6d6 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d6d6d6 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 969896 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d6d6d6 + set -U fish_color_selection white --bold --background=d6d6d6 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme tomorrow + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-tube.fish b/fish/functions/base16-tube.fish new file mode 100644 index 0000000..6858c4f --- /dev/null +++ b/fish/functions/base16-tube.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# London Tube scheme by Jan T. Sott + +function base16-tube -d "London Tube" + set color00 23/1f/20 # Base 00 - Black + set color01 ee/2e/24 # Base 08 - Red + set color02 00/85/3e # Base 0B - Green + set color03 ff/d2/04 # Base 0A - Yellow + set color04 00/9d/dc # Base 0D - Blue + set color05 98/00/5d # Base 0E - Magenta + set color06 85/ce/bc # Base 0C - Cyan + set color07 d9/d8/d8 # Base 05 - White + set color08 73/71/71 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 f3/86/a1 # Base 09 + set color17 b0/61/10 # Base 0F + set color18 1c/3f/95 # Base 01 + set color19 5a/57/58 # Base 02 + set color20 95/9c/a1 # Base 04 + set color21 e7/e7/e8 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg d9d8d8 # foreground + put_template_custom Ph 231f20 # background + put_template_custom Pi d9d8d8 # bold color + put_template_custom Pj 5a5758 # selection color + put_template_custom Pk d9d8d8 # selected text color + put_template_custom Pl d9d8d8 # cursor + put_template_custom Pm 231f20 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 5a5758 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 5a5758 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 959ca1 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=5a5758 + set -U fish_color_selection white --bold --background=5a5758 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme tube + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-twilight.fish b/fish/functions/base16-twilight.fish new file mode 100644 index 0000000..e4ca889 --- /dev/null +++ b/fish/functions/base16-twilight.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Twilight scheme by David Hart (https://github.com/hartbit) + +function base16-twilight -d "Twilight" + set color00 1e/1e/1e # Base 00 - Black + set color01 cf/6a/4c # Base 08 - Red + set color02 8f/9d/6a # Base 0B - Green + set color03 f9/ee/98 # Base 0A - Yellow + set color04 75/87/a6 # Base 0D - Blue + set color05 9b/85/9d # Base 0E - Magenta + set color06 af/c4/db # Base 0C - Cyan + set color07 a7/a7/a7 # Base 05 - White + set color08 5f/5a/60 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 cd/a8/69 # Base 09 + set color17 9b/70/3f # Base 0F + set color18 32/35/37 # Base 01 + set color19 46/4b/50 # Base 02 + set color20 83/81/84 # Base 04 + set color21 c3/c3/c3 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a7a7a7 # foreground + put_template_custom Ph 1e1e1e # background + put_template_custom Pi a7a7a7 # bold color + put_template_custom Pj 464b50 # selection color + put_template_custom Pk a7a7a7 # selected text color + put_template_custom Pl a7a7a7 # cursor + put_template_custom Pm 1e1e1e # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 464b50 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 464b50 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 838184 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=464b50 + set -U fish_color_selection white --bold --background=464b50 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme twilight + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-unikitty-dark.fish b/fish/functions/base16-unikitty-dark.fish new file mode 100644 index 0000000..ebb03eb --- /dev/null +++ b/fish/functions/base16-unikitty-dark.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Unikitty Dark scheme by Josh W Lewis (@joshwlewis) + +function base16-unikitty-dark -d "Unikitty Dark" + set color00 2e/2a/31 # Base 00 - Black + set color01 d8/13/7f # Base 08 - Red + set color02 17/ad/98 # Base 0B - Green + set color03 dc/8a/0e # Base 0A - Yellow + set color04 79/6a/f5 # Base 0D - Blue + set color05 bb/60/ea # Base 0E - Magenta + set color06 14/9b/da # Base 0C - Cyan + set color07 bc/ba/be # Base 05 - White + set color08 83/80/85 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f5/f4/f7 # Base 07 - Bright White + set color16 d6/54/07 # Base 09 + set color17 c7/20/ca # Base 0F + set color18 4a/46/4d # Base 01 + set color19 66/63/69 # Base 02 + set color20 9f/9d/a2 # Base 04 + set color21 d8/d7/da # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg bcbabe # foreground + put_template_custom Ph 2e2a31 # background + put_template_custom Pi bcbabe # bold color + put_template_custom Pj 666369 # selection color + put_template_custom Pk bcbabe # selected text color + put_template_custom Pl bcbabe # cursor + put_template_custom Pm 2e2a31 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 666369 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 666369 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 9f9da2 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=666369 + set -U fish_color_selection white --bold --background=666369 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme unikitty-dark + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-unikitty-light.fish b/fish/functions/base16-unikitty-light.fish new file mode 100644 index 0000000..e39f4f6 --- /dev/null +++ b/fish/functions/base16-unikitty-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Unikitty Light scheme by Josh W Lewis (@joshwlewis) + +function base16-unikitty-light -d "Unikitty Light" + set color00 ff/ff/ff # Base 00 - Black + set color01 d8/13/7f # Base 08 - Red + set color02 17/ad/98 # Base 0B - Green + set color03 dc/8a/0e # Base 0A - Yellow + set color04 77/5d/ff # Base 0D - Blue + set color05 aa/17/e6 # Base 0E - Magenta + set color06 14/9b/da # Base 0C - Cyan + set color07 6c/69/6e # Base 05 - White + set color08 a7/a5/a8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 32/2d/34 # Base 07 - Bright White + set color16 d6/54/07 # Base 09 + set color17 e0/13/d0 # Base 0F + set color18 e1/e1/e2 # Base 01 + set color19 c4/c3/c5 # Base 02 + set color20 89/87/8b # Base 04 + set color21 4f/4b/51 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 6c696e # foreground + put_template_custom Ph ffffff # background + put_template_custom Pi 6c696e # bold color + put_template_custom Pj c4c3c5 # selection color + put_template_custom Pk 6c696e # selected text color + put_template_custom Pl 6c696e # cursor + put_template_custom Pm ffffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion c4c3c5 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment c4c3c5 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 89878b + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=c4c3c5 + set -U fish_color_selection white --bold --background=c4c3c5 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme unikitty-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-vulcan.fish b/fish/functions/base16-vulcan.fish new file mode 100644 index 0000000..aef34b9 --- /dev/null +++ b/fish/functions/base16-vulcan.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# vulcan scheme by Andrey Varfolomeev + +function base16-vulcan -d "vulcan" + set color00 04/15/23 # Base 00 - Black + set color01 81/85/91 # Base 08 - Red + set color02 97/7d/7c # Base 0B - Green + set color03 ad/b4/b9 # Base 0A - Yellow + set color04 97/7d/7c # Base 0D - Blue + set color05 91/98/a3 # Base 0E - Magenta + set color06 97/7d/7c # Base 0C - Cyan + set color07 5b/77/8c # Base 05 - White + set color08 7a/57/59 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 21/4d/68 # Base 07 - Bright White + set color16 91/98/a3 # Base 09 + set color17 97/7d/7c # Base 0F + set color18 12/23/39 # Base 01 + set color19 00/35/52 # Base 02 + set color20 6b/69/77 # Base 04 + set color21 33/32/38 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 5b778c # foreground + put_template_custom Ph 041523 # background + put_template_custom Pi 5b778c # bold color + put_template_custom Pj 003552 # selection color + put_template_custom Pk 5b778c # selected text color + put_template_custom Pl 5b778c # cursor + put_template_custom Pm 041523 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 003552 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 003552 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 6b6977 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=003552 + set -U fish_color_selection white --bold --background=003552 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme vulcan + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-10-light.fish b/fish/functions/base16-windows-10-light.fish new file mode 100644 index 0000000..517dc02 --- /dev/null +++ b/fish/functions/base16-windows-10-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows 10 Light scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-10-light -d "Windows 10 Light" + set color00 f2/f2/f2 # Base 00 - Black + set color01 c5/0f/1f # Base 08 - Red + set color02 13/a1/0e # Base 0B - Green + set color03 c1/9c/00 # Base 0A - Yellow + set color04 00/37/da # Base 0D - Blue + set color05 88/17/98 # Base 0E - Magenta + set color06 3a/96/dd # Base 0C - Cyan + set color07 76/76/76 # Base 05 - White + set color08 cc/cc/cc # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 0c/0c/0c # Base 07 - Bright White + set color16 f9/f1/a5 # Base 09 + set color17 16/c6/0c # Base 0F + set color18 e5/e5/e5 # Base 01 + set color19 d9/d9/d9 # Base 02 + set color20 ab/ab/ab # Base 04 + set color21 41/41/41 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 767676 # foreground + put_template_custom Ph f2f2f2 # background + put_template_custom Pi 767676 # bold color + put_template_custom Pj d9d9d9 # selection color + put_template_custom Pk 767676 # selected text color + put_template_custom Pl 767676 # cursor + put_template_custom Pm f2f2f2 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d9d9d9 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d9d9d9 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param ababab + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d9d9d9 + set -U fish_color_selection white --bold --background=d9d9d9 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-10-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-10.fish b/fish/functions/base16-windows-10.fish new file mode 100644 index 0000000..818dbfb --- /dev/null +++ b/fish/functions/base16-windows-10.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows 10 scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-10 -d "Windows 10" + set color00 0c/0c/0c # Base 00 - Black + set color01 e7/48/56 # Base 08 - Red + set color02 16/c6/0c # Base 0B - Green + set color03 f9/f1/a5 # Base 0A - Yellow + set color04 3b/78/ff # Base 0D - Blue + set color05 b4/00/9e # Base 0E - Magenta + set color06 61/d6/d6 # Base 0C - Cyan + set color07 cc/cc/cc # Base 05 - White + set color08 76/76/76 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 f2/f2/f2 # Base 07 - Bright White + set color16 c1/9c/00 # Base 09 + set color17 13/a1/0e # Base 0F + set color18 2f/2f/2f # Base 01 + set color19 53/53/53 # Base 02 + set color20 b9/b9/b9 # Base 04 + set color21 df/df/df # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cccccc # foreground + put_template_custom Ph 0c0c0c # background + put_template_custom Pi cccccc # bold color + put_template_custom Pj 535353 # selection color + put_template_custom Pk cccccc # selected text color + put_template_custom Pl cccccc # cursor + put_template_custom Pm 0c0c0c # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 535353 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 535353 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b9b9b9 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=535353 + set -U fish_color_selection white --bold --background=535353 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-10 + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-95-light.fish b/fish/functions/base16-windows-95-light.fish new file mode 100644 index 0000000..8021f3f --- /dev/null +++ b/fish/functions/base16-windows-95-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows 95 Light scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-95-light -d "Windows 95 Light" + set color00 fc/fc/fc # Base 00 - Black + set color01 a8/00/00 # Base 08 - Red + set color02 00/a8/00 # Base 0B - Green + set color03 a8/54/00 # Base 0A - Yellow + set color04 00/00/a8 # Base 0D - Blue + set color05 a8/00/a8 # Base 0E - Magenta + set color06 00/a8/a8 # Base 0C - Cyan + set color07 54/54/54 # Base 05 - White + set color08 a8/a8/a8 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 00/00/00 # Base 07 - Bright White + set color16 fc/fc/54 # Base 09 + set color17 54/fc/54 # Base 0F + set color18 e0/e0/e0 # Base 01 + set color19 c4/c4/c4 # Base 02 + set color20 7e/7e/7e # Base 04 + set color21 2a/2a/2a # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 545454 # foreground + put_template_custom Ph fcfcfc # background + put_template_custom Pi 545454 # bold color + put_template_custom Pj c4c4c4 # selection color + put_template_custom Pk 545454 # selected text color + put_template_custom Pl 545454 # cursor + put_template_custom Pm fcfcfc # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion c4c4c4 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment c4c4c4 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e7e7e + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=c4c4c4 + set -U fish_color_selection white --bold --background=c4c4c4 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-95-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-95.fish b/fish/functions/base16-windows-95.fish new file mode 100644 index 0000000..b407b92 --- /dev/null +++ b/fish/functions/base16-windows-95.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows 95 scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-95 -d "Windows 95" + set color00 00/00/00 # Base 00 - Black + set color01 fc/54/54 # Base 08 - Red + set color02 54/fc/54 # Base 0B - Green + set color03 fc/fc/54 # Base 0A - Yellow + set color04 54/54/fc # Base 0D - Blue + set color05 fc/54/fc # Base 0E - Magenta + set color06 54/fc/fc # Base 0C - Cyan + set color07 a8/a8/a8 # Base 05 - White + set color08 54/54/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fc/fc/fc # Base 07 - Bright White + set color16 a8/54/00 # Base 09 + set color17 00/a8/00 # Base 0F + set color18 1C/1C/1C # Base 01 + set color19 38/38/38 # Base 02 + set color20 7e/7e/7e # Base 04 + set color21 d2/d2/d2 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg a8a8a8 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi a8a8a8 # bold color + put_template_custom Pj 383838 # selection color + put_template_custom Pk a8a8a8 # selected text color + put_template_custom Pl a8a8a8 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 383838 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 383838 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e7e7e + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=383838 + set -U fish_color_selection white --bold --background=383838 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-95 + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-highcontrast-light.fish b/fish/functions/base16-windows-highcontrast-light.fish new file mode 100644 index 0000000..54bce93 --- /dev/null +++ b/fish/functions/base16-windows-highcontrast-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows High Contrast Light scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-highcontrast-light -d "Windows High Contrast Light" + set color00 fc/fc/fc # Base 00 - Black + set color01 80/00/00 # Base 08 - Red + set color02 00/80/00 # Base 0B - Green + set color03 80/80/00 # Base 0A - Yellow + set color04 00/00/80 # Base 0D - Blue + set color05 80/00/80 # Base 0E - Magenta + set color06 00/80/80 # Base 0C - Cyan + set color07 54/54/54 # Base 05 - White + set color08 c0/c0/c0 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 00/00/00 # Base 07 - Bright White + set color16 fc/fc/54 # Base 09 + set color17 54/fc/54 # Base 0F + set color18 e8/e8/e8 # Base 01 + set color19 d4/d4/d4 # Base 02 + set color20 7e/7e/7e # Base 04 + set color21 2a/2a/2a # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 545454 # foreground + put_template_custom Ph fcfcfc # background + put_template_custom Pi 545454 # bold color + put_template_custom Pj d4d4d4 # selection color + put_template_custom Pk 545454 # selected text color + put_template_custom Pl 545454 # cursor + put_template_custom Pm fcfcfc # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d4d4d4 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d4d4d4 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7e7e7e + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d4d4d4 + set -U fish_color_selection white --bold --background=d4d4d4 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-highcontrast-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-highcontrast.fish b/fish/functions/base16-windows-highcontrast.fish new file mode 100644 index 0000000..8dfbc59 --- /dev/null +++ b/fish/functions/base16-windows-highcontrast.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows High Contrast scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-highcontrast -d "Windows High Contrast" + set color00 00/00/00 # Base 00 - Black + set color01 fc/54/54 # Base 08 - Red + set color02 54/fc/54 # Base 0B - Green + set color03 fc/fc/54 # Base 0A - Yellow + set color04 54/54/fc # Base 0D - Blue + set color05 fc/54/fc # Base 0E - Magenta + set color06 54/fc/fc # Base 0C - Cyan + set color07 c0/c0/c0 # Base 05 - White + set color08 54/54/54 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 fc/fc/fc # Base 07 - Bright White + set color16 80/80/00 # Base 09 + set color17 00/80/00 # Base 0F + set color18 1C/1C/1C # Base 01 + set color19 38/38/38 # Base 02 + set color20 a2/a2/a2 # Base 04 + set color21 de/de/de # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c0c0c0 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c0c0c0 # bold color + put_template_custom Pj 383838 # selection color + put_template_custom Pk c0c0c0 # selected text color + put_template_custom Pl c0c0c0 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 383838 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 383838 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a2a2a2 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=383838 + set -U fish_color_selection white --bold --background=383838 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-highcontrast + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-nt-light.fish b/fish/functions/base16-windows-nt-light.fish new file mode 100644 index 0000000..42d93e2 --- /dev/null +++ b/fish/functions/base16-windows-nt-light.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows NT Light scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-nt-light -d "Windows NT Light" + set color00 ff/ff/ff # Base 00 - Black + set color01 80/00/00 # Base 08 - Red + set color02 00/80/00 # Base 0B - Green + set color03 80/80/00 # Base 0A - Yellow + set color04 00/00/80 # Base 0D - Blue + set color05 80/00/80 # Base 0E - Magenta + set color06 00/80/80 # Base 0C - Cyan + set color07 80/80/80 # Base 05 - White + set color08 c0/c0/c0 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 00/00/00 # Base 07 - Bright White + set color16 ff/ff/00 # Base 09 + set color17 00/ff/00 # Base 0F + set color18 ea/ea/ea # Base 01 + set color19 d5/d5/d5 # Base 02 + set color20 a0/a0/a0 # Base 04 + set color21 40/40/40 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 808080 # foreground + put_template_custom Ph ffffff # background + put_template_custom Pi 808080 # bold color + put_template_custom Pj d5d5d5 # selection color + put_template_custom Pk 808080 # selected text color + put_template_custom Pl 808080 # cursor + put_template_custom Pm ffffff # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion d5d5d5 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment d5d5d5 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a0a0a0 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=d5d5d5 + set -U fish_color_selection white --bold --background=d5d5d5 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-nt-light + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-windows-nt.fish b/fish/functions/base16-windows-nt.fish new file mode 100644 index 0000000..0d87626 --- /dev/null +++ b/fish/functions/base16-windows-nt.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Windows NT scheme by Fergus Collins (https://github.com/C-Fergus) + +function base16-windows-nt -d "Windows NT" + set color00 00/00/00 # Base 00 - Black + set color01 ff/00/00 # Base 08 - Red + set color02 00/ff/00 # Base 0B - Green + set color03 ff/ff/00 # Base 0A - Yellow + set color04 00/00/ff # Base 0D - Blue + set color05 ff/00/ff # Base 0E - Magenta + set color06 00/ff/ff # Base 0C - Cyan + set color07 c0/c0/c0 # Base 05 - White + set color08 80/80/80 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 80/80/00 # Base 09 + set color17 00/80/00 # Base 0F + set color18 2a/2a/2a # Base 01 + set color19 55/55/55 # Base 02 + set color20 a1/a1/a1 # Base 04 + set color21 e0/e0/e0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg c0c0c0 # foreground + put_template_custom Ph 000000 # background + put_template_custom Pi c0c0c0 # bold color + put_template_custom Pj 555555 # selection color + put_template_custom Pk c0c0c0 # selected text color + put_template_custom Pl c0c0c0 # cursor + put_template_custom Pm 000000 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 555555 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 555555 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param a1a1a1 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=555555 + set -U fish_color_selection white --bold --background=555555 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme windows-nt + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-woodland.fish b/fish/functions/base16-woodland.fish new file mode 100644 index 0000000..e074fd6 --- /dev/null +++ b/fish/functions/base16-woodland.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Woodland scheme by Jay Cornwall (https://jcornwall.com) + +function base16-woodland -d "Woodland" + set color00 23/1e/18 # Base 00 - Black + set color01 d3/5c/5c # Base 08 - Red + set color02 b7/ba/53 # Base 0B - Green + set color03 e0/ac/16 # Base 0A - Yellow + set color04 88/a4/d3 # Base 0D - Blue + set color05 bb/90/e2 # Base 0E - Magenta + set color06 6e/b9/58 # Base 0C - Cyan + set color07 ca/bc/b1 # Base 05 - White + set color08 9d/8b/70 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 e4/d4/c8 # Base 07 - Bright White + set color16 ca/7f/32 # Base 09 + set color17 b4/93/68 # Base 0F + set color18 30/2b/25 # Base 01 + set color19 48/41/3a # Base 02 + set color20 b4/a4/90 # Base 04 + set color21 d7/c8/bc # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg cabcb1 # foreground + put_template_custom Ph 231e18 # background + put_template_custom Pi cabcb1 # bold color + put_template_custom Pj 48413a # selection color + put_template_custom Pk cabcb1 # selected text color + put_template_custom Pl cabcb1 # cursor + put_template_custom Pm 231e18 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 48413a + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 48413a + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param b4a490 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=48413a + set -U fish_color_selection white --bold --background=48413a + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme woodland + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-xcode-dusk.fish b/fish/functions/base16-xcode-dusk.fish new file mode 100644 index 0000000..88cdf83 --- /dev/null +++ b/fish/functions/base16-xcode-dusk.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# XCode Dusk scheme by Elsa Gonsiorowski (https://github.com/gonsie) + +function base16-xcode-dusk -d "XCode Dusk" + set color00 28/2B/35 # Base 00 - Black + set color01 B2/18/89 # Base 08 - Red + set color02 DF/00/02 # Base 0B - Green + set color03 43/82/88 # Base 0A - Yellow + set color04 79/0E/AD # Base 0D - Blue + set color05 B2/18/89 # Base 0E - Magenta + set color06 00/A0/BE # Base 0C - Cyan + set color07 93/95/99 # Base 05 - White + set color08 68/6A/71 # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 BE/BF/C2 # Base 07 - Bright White + set color16 78/6D/C5 # Base 09 + set color17 C7/7C/48 # Base 0F + set color18 3D/40/48 # Base 01 + set color19 53/55/5D # Base 02 + set color20 7E/80/86 # Base 04 + set color21 A9/AA/AE # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg 939599 # foreground + put_template_custom Ph 282B35 # background + put_template_custom Pi 939599 # bold color + put_template_custom Pj 53555D # selection color + put_template_custom Pk 939599 # selected text color + put_template_custom Pl 939599 # cursor + put_template_custom Pm 282B35 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 53555D + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 53555D + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 7E8086 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=53555D + set -U fish_color_selection white --bold --background=53555D + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme xcode-dusk + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/base16-zenburn.fish b/fish/functions/base16-zenburn.fish new file mode 100644 index 0000000..399fd22 --- /dev/null +++ b/fish/functions/base16-zenburn.fish @@ -0,0 +1,132 @@ +# base16-fish (https://github.com/tomyun/base16-fish) +# based on base16-shell (https://github.com/chriskempson/base16-shell) +# Zenburn scheme by elnawe + +function base16-zenburn -d "Zenburn" + set color00 38/38/38 # Base 00 - Black + set color01 dc/a3/a3 # Base 08 - Red + set color02 5f/7f/5f # Base 0B - Green + set color03 e0/cf/9f # Base 0A - Yellow + set color04 7c/b8/bb # Base 0D - Blue + set color05 dc/8c/c3 # Base 0E - Magenta + set color06 93/e0/e3 # Base 0C - Cyan + set color07 dc/dc/cc # Base 05 - White + set color08 6f/6f/6f # Base 03 - Bright Black + set color09 $color01 # Base 08 - Bright Red + set color10 $color02 # Base 0B - Bright Green + set color11 $color03 # Base 0A - Bright Yellow + set color12 $color04 # Base 0D - Bright Blue + set color13 $color05 # Base 0E - Bright Magenta + set color14 $color06 # Base 0C - Bright Cyan + set color15 ff/ff/ff # Base 07 - Bright White + set color16 df/af/8f # Base 09 + set color17 00/00/00 # Base 0F + set color18 40/40/40 # Base 01 + set color19 60/60/60 # Base 02 + set color20 80/80/80 # Base 04 + set color21 c0/c0/c0 # Base 06 + set colorfg $color07 # Base 05 - White + set colorbg $color00 # Base 00 - Black + + if test -n "$TMUX" + # Tell tmux to pass the escape sequences through + # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) + function put_template; printf '\033Ptmux;\033\033]4;%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_var; printf '\033Ptmux;\033\033]%d;rgb:%s\033\033\\\033\\' $argv; end; + function put_template_custom; printf '\033Ptmux;\033\033]%s%s\033\033\\\033\\' $argv; end; + else if string match 'screen*' $TERM # [ "${TERM%%[-.]*}" = "screen" ] + # GNU screen (screen, screen-256color, screen-256color-bce) + function put_template; printf '\033P\033]4;%d;rgb:%s\007\033\\' $argv; end; + function put_template_var; printf '\033P\033]%d;rgb:%s\007\033\\' $argv; end; + function put_template_custom; printf '\033P\033]%s%s\007\033\\' $argv; end; + else if string match 'linux*' $TERM # [ "${TERM%%-*}" = "linux" ] + function put_template; test $argv[1] -lt 16 && printf "\e]P%x%s" $argv[1] (echo $argv[2] | sed 's/\///g'); end; + function put_template_var; true; end; + function put_template_custom; true; end; + else + function put_template; printf '\033]4;%d;rgb:%s\033\\' $argv; end; + function put_template_var; printf '\033]%d;rgb:%s\033\\' $argv; end; + function put_template_custom; printf '\033]%s%s\033\\' $argv; end; + end + + # 16 color space + put_template 0 $color00 + put_template 1 $color01 + put_template 2 $color02 + put_template 3 $color03 + put_template 4 $color04 + put_template 5 $color05 + put_template 6 $color06 + put_template 7 $color07 + put_template 8 $color08 + put_template 9 $color09 + put_template 10 $color10 + put_template 11 $color11 + put_template 12 $color12 + put_template 13 $color13 + put_template 14 $color14 + put_template 15 $color15 + + # 256 color space + put_template 16 $color16 + put_template 17 $color17 + put_template 18 $color18 + put_template 19 $color19 + put_template 20 $color20 + put_template 21 $color21 + + # foreground / background / cursor color + if test -n "$ITERM_SESSION_ID" + # iTerm2 proprietary escape codes + put_template_custom Pg dcdccc # foreground + put_template_custom Ph 383838 # background + put_template_custom Pi dcdccc # bold color + put_template_custom Pj 606060 # selection color + put_template_custom Pk dcdccc # selected text color + put_template_custom Pl dcdccc # cursor + put_template_custom Pm 383838 # cursor text + else + put_template_var 10 $colorfg + if [ "$BASE16_SHELL_SET_BACKGROUND" != false ] + put_template_var 11 $colorbg + if string match 'rxvt*' $TERM # [ "${TERM%%-*}" = "rxvt" ] + put_template_var 708 $colorbg # internal border (rxvt) + end + end + put_template_custom 12 ";7" # cursor (reverse video) + end + + # set syntax highlighting colors + set -U fish_color_autosuggestion 606060 + set -U fish_color_cancel -r + set -U fish_color_command green #white + set -U fish_color_comment 606060 + set -U fish_color_cwd green + set -U fish_color_cwd_root red + set -U fish_color_end brblack #blue + set -U fish_color_error red + set -U fish_color_escape yellow #green + set -U fish_color_history_current --bold + set -U fish_color_host normal + set -U fish_color_match --background=brblue + set -U fish_color_normal normal + set -U fish_color_operator blue #green + set -U fish_color_param 808080 + set -U fish_color_quote yellow #brblack + set -U fish_color_redirection cyan + set -U fish_color_search_match bryellow --background=606060 + set -U fish_color_selection white --bold --background=606060 + set -U fish_color_status red + set -U fish_color_user brgreen + set -U fish_color_valid_path --underline + set -U fish_pager_color_completion normal + set -U fish_pager_color_description yellow --dim + set -U fish_pager_color_prefix white --bold #--underline + set -U fish_pager_color_progress brwhite --background=cyan + + # remember current theme + set -U base16_theme zenburn + + # clean up + functions -e put_template put_template_var put_template_custom +end diff --git a/fish/functions/fisher.fish b/fish/functions/fisher.fish new file mode 100644 index 0000000..b1513d3 --- /dev/null +++ b/fish/functions/fisher.fish @@ -0,0 +1,240 @@ +function fisher --argument-names cmd --description "A plugin manager for Fish" + set --query fisher_path || set --local fisher_path $__fish_config_dir + set --local fisher_version 4.4.4 + set --local fish_plugins $__fish_config_dir/fish_plugins + + switch "$cmd" + case -v --version + echo "fisher, version $fisher_version" + case "" -h --help + echo "Usage: fisher install Install plugins" + echo " fisher remove Remove installed plugins" + echo " fisher update Update installed plugins" + echo " fisher update Update all installed plugins" + echo " fisher list [] List installed plugins matching regex" + echo "Options:" + echo " -v, --version Print version" + echo " -h, --help Print this help message" + echo "Variables:" + echo " \$fisher_path Plugin installation path. Default: $__fish_config_dir" | string replace --regex -- $HOME \~ + case ls list + string match --entire --regex -- "$argv[2]" $_fisher_plugins + case install update remove + isatty || read --local --null --array stdin && set --append argv $stdin + + set --local install_plugins + set --local update_plugins + set --local remove_plugins + set --local arg_plugins $argv[2..-1] + set --local old_plugins $_fisher_plugins + set --local new_plugins + + test -e $fish_plugins && set --local file_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins) + + if ! set --query argv[2] + if test "$cmd" != update + echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1 + else if ! set --query file_plugins + echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1 + end + set arg_plugins $file_plugins + end + + for plugin in $arg_plugins + set plugin (test -e "$plugin" && realpath $plugin || string lower -- $plugin) + contains -- "$plugin" $new_plugins || set --append new_plugins $plugin + end + + if set --query argv[2] + for plugin in $new_plugins + if contains -- "$plugin" $old_plugins + test "$cmd" = remove && + set --append remove_plugins $plugin || + set --append update_plugins $plugin + else if test "$cmd" = install + set --append install_plugins $plugin + else + echo "fisher: Plugin not installed: \"$plugin\"" >&2 && return 1 + end + end + else + for plugin in $new_plugins + contains -- "$plugin" $old_plugins && + set --append update_plugins $plugin || + set --append install_plugins $plugin + end + + for plugin in $old_plugins + contains -- "$plugin" $new_plugins || set --append remove_plugins $plugin + end + end + + set --local pid_list + set --local source_plugins + set --local fetch_plugins $update_plugins $install_plugins + set --local fish_path (status fish-path) + + echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal) + + for plugin in $fetch_plugins + set --local source (command mktemp -d) + set --append source_plugins $source + + command mkdir -p $source/{completions,conf.d,themes,functions} + + $fish_path --command " + if test -e $plugin + command cp -Rf $plugin/* $source + else + set temp (command mktemp -d) + set repo (string split -- \@ $plugin) || set repo[2] HEAD + + if set path (string replace --regex -- '^(https://)?gitlab.com/' '' \$repo[1]) + set name (string split -- / \$path)[-1] + set url https://gitlab.com/\$path/-/archive/\$repo[2]/\$name-\$repo[2].tar.gz + else + set url https://api.github.com/repos/\$repo[1]/tarball/\$repo[2] + end + + echo Fetching (set_color --underline)\$url(set_color normal) + + if command curl -q --silent -L \$url | command tar -xzC \$temp -f - 2>/dev/null + command cp -Rf \$temp/*/* $source + else + echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2 + command rm -rf $source + end + + command rm -rf \$temp + end + + set files $source/* && string match --quiet --regex -- .+\.fish\\\$ \$files + " & + + set --append pid_list (jobs --last --pid) + end + + wait $pid_list 2>/dev/null + + for plugin in $fetch_plugins + if set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)] && test ! -e $source + if set --local index (contains --index -- "$plugin" $install_plugins) + set --erase install_plugins[$index] + else + set --erase update_plugins[(contains --index -- "$plugin" $update_plugins)] + end + end + end + + for plugin in $update_plugins $remove_plugins + if set --local index (contains --index -- "$plugin" $_fisher_plugins) + set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files + + if contains -- "$plugin" $remove_plugins + for name in (string replace --filter --regex -- '.+/conf\.d/([^/]+)\.fish$' '$1' $$plugin_files_var) + emit {$name}_uninstall + end + printf "%s\n" Removing\ (set_color red --bold)$plugin(set_color normal) " "$$plugin_files_var | string replace -- \~ ~ + set --erase _fisher_plugins[$index] + end + + command rm -rf (string replace -- \~ ~ $$plugin_files_var) + + functions --erase (string replace --filter --regex -- '.+/functions/([^/]+)\.fish$' '$1' $$plugin_files_var) + + for name in (string replace --filter --regex -- '.+/completions/([^/]+)\.fish$' '$1' $$plugin_files_var) + complete --erase --command $name + end + + set --erase $plugin_files_var + end + end + + if set --query update_plugins[1] || set --query install_plugins[1] + command mkdir -p $fisher_path/{functions,themes,conf.d,completions} + end + + for plugin in $update_plugins $install_plugins + set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)] + set --local files $source/{functions,themes,conf.d,completions}/* + + if set --local index (contains --index -- $plugin $install_plugins) + set --local user_files $fisher_path/{functions,themes,conf.d,completions}/* + set --local conflict_files + + for file in (string replace -- $source/ $fisher_path/ $files) + contains -- $file $user_files && set --append conflict_files $file + end + + if set --query conflict_files[1] && set --erase install_plugins[$index] + echo -s "fisher: Cannot install \"$plugin\": please remove or move conflicting files first:" \n" "$conflict_files >&2 + continue + end + end + + for file in (string replace -- $source/ "" $files) + command cp -RLf $source/$file $fisher_path/$file + end + + set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files + + set --query files[1] && set --universal $plugin_files_var (string replace -- $source $fisher_path $files | string replace -- ~ \~) + + contains -- $plugin $_fisher_plugins || set --universal --append _fisher_plugins $plugin + contains -- $plugin $install_plugins && set --local event install || set --local event update + + printf "%s\n" Installing\ (set_color --bold)$plugin(set_color normal) " "$$plugin_files_var | string replace -- \~ ~ + + for file in (string match --regex -- '.+/[^/]+\.fish$' $$plugin_files_var | string replace -- \~ ~) + source $file + if set --local name (string replace --regex -- '.+conf\.d/([^/]+)\.fish$' '$1' $file) + emit {$name}_$event + end + end + end + + command rm -rf $source_plugins + + if set --query _fisher_plugins[1] + set --local commit_plugins + + for plugin in $file_plugins + contains -- (string lower -- $plugin) (string lower -- $_fisher_plugins) && set --append commit_plugins $plugin + end + + for plugin in $_fisher_plugins + contains -- (string lower -- $plugin) (string lower -- $commit_plugins) || set --append commit_plugins $plugin + end + + printf "%s\n" $commit_plugins >$fish_plugins + else + set --erase _fisher_plugins + command rm -f $fish_plugins + end + + set --local total (count $install_plugins) (count $update_plugins) (count $remove_plugins) + + test "$total" != "0 0 0" && echo (string join ", " ( + test $total[1] = 0 || echo "Installed $total[1]") ( + test $total[2] = 0 || echo "Updated $total[2]") ( + test $total[3] = 0 || echo "Removed $total[3]") + ) plugin/s + case \* + echo "fisher: Unknown command: \"$cmd\"" >&2 && return 1 + end +end + +if ! set --query _fisher_upgraded_to_4_4 + set --universal _fisher_upgraded_to_4_4 + if functions --query _fisher_list + set --query XDG_DATA_HOME[1] || set --local XDG_DATA_HOME ~/.local/share + command rm -rf $XDG_DATA_HOME/fisher + functions --erase _fisher_{list,plugin_parse} + fisher update >/dev/null 2>/dev/null + else + for var in (set --names | string match --entire --regex '^_fisher_.+_files$') + set $var (string replace -- ~ \~ $$var) + end + functions --erase _fisher_fish_postexec + end +end diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..568a30d --- /dev/null +++ b/nvim/init.lua @@ -0,0 +1,3 @@ +require("adam.core.keymaps") +require("adam.core.options") +require("adam.lazy") diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json new file mode 100644 index 0000000..b5fe326 --- /dev/null +++ b/nvim/lazy-lock.json @@ -0,0 +1,33 @@ +{ + "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, + "FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" }, + "LuaSnip": { "branch": "master", "commit": "f03089854a8e15594a01562fa7192d0009a6fbe7" }, + "base16-nvim": { "branch": "master", "commit": "2349e8357864bf0ef45d40f491f8e1e6465485b0" }, + "bufferline.nvim": { "branch": "main", "commit": "6ecd37e0fa8b156099daedd2191130e083fb1490" }, + "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, + "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, + "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, + "dressing.nvim": { "branch": "master", "commit": "8b7ae53d7f04f33be3439a441db8071c96092d19" }, + "friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" }, + "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, + "lspkind.nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" }, + "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "4eb8e15e3c0757303d4c6dea64d2981fc679e990" }, + "mason.nvim": { "branch": "main", "commit": "41e75af1f578e55ba050c863587cffde3556ffa6" }, + "neotest": { "branch": "master", "commit": "d424d262d01bccc1e0b038c9a7220a755afd2a1f" }, + "neotest-elixir": { "branch": "master", "commit": "3117ca5442c02998847131c39551b76a6ceac9d7" }, + "neotest-go": { "branch": "main", "commit": "d29d20d912aca81a07c50022d880cc66f0d26542" }, + "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, + "nvim-lspconfig": { "branch": "master", "commit": "694aaec65733e2d54d393abf80e526f86726c988" }, + "nvim-tree.lua": { "branch": "master", "commit": "05f55c1fd6470b31627655c528245794e3cd4b2c" }, + "nvim-treesitter": { "branch": "master", "commit": "841dde702ce2e58ffc3724808f3dbea2edee57d5" }, + "nvim-web-devicons": { "branch": "master", "commit": "5efb8bd06841f91f97c90e16de85e96d57e9c862" }, + "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, + "rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" }, + "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, + "telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, + "vim-maximizer": { "branch": "master", "commit": "2e54952fe91e140a2e69f35f22131219fcd9c5f1" }, + "vim-tmux-navigator": { "branch": "master", "commit": "7db70e08ea03b3e4d91f63713d76134512e28d7e" }, + "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } +} \ No newline at end of file diff --git a/nvim/lua/adam/core/keymaps.lua b/nvim/lua/adam/core/keymaps.lua new file mode 100644 index 0000000..c79e248 --- /dev/null +++ b/nvim/lua/adam/core/keymaps.lua @@ -0,0 +1,23 @@ +vim.g.mapleader = " " + +local keymap = vim.keymap + +-- nvim-tree +keymap.set("n", "e", ":NvimTreeToggle") + +keymap.set("n", "cs", ":nohl") + +-- split windows +keymap.set("n", "sv", "v") -- split vertically +keymap.set("n", "sh", "s") -- split horizontally +keymap.set("n", "se", "=") -- make split windows equal width +keymap.set("n", "sx", ":close") -- close current split window +keymap.set("n", "", "h") -- move to left split +keymap.set("n", "", "l") -- move to right split + +-- tabs +keymap.set("n", "to", ":tabnew") -- open new tab +keymap.set("n", "tx", ":tabclose") -- close current tab +keymap.set("n", "tw", ":tabn") -- next tab +keymap.set("n", "tq", ":tabp") -- previous tab + diff --git a/nvim/lua/adam/core/options.lua b/nvim/lua/adam/core/options.lua new file mode 100644 index 0000000..33c2ead --- /dev/null +++ b/nvim/lua/adam/core/options.lua @@ -0,0 +1,41 @@ +local opt = vim.opt + +-- line numbers +opt.relativenumber = true +opt.number = true + +-- tabs and indentation +opt.tabstop = 4 +opt.shiftwidth = 4 +opt.expandtab = true +opt.autoindent = true + +-- line wrapping +opt.wrap = false + +-- search settings +opt.ignorecase = true +opt.smartcase = true + +-- cursor line +opt.cursorline = true + +-- appearance +opt.termguicolors = true +opt.background = "dark" +opt.signcolumn = "yes" + +-- backspace +opt.backspace = "indent,eol,start" + +-- clipboard +opt.clipboard:append("unnamedplus") + +-- split windows +opt.splitright = true +opt.splitbelow = true + +opt.iskeyword:append("-") + +-- vertical line at 100 characters +vim.opt.colorcolumn = '100' diff --git a/nvim/lua/adam/lazy.lua b/nvim/lua/adam/lazy.lua new file mode 100644 index 0000000..74079ea --- /dev/null +++ b/nvim/lua/adam/lazy.lua @@ -0,0 +1,17 @@ +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + +require("lazy").setup({ + {import = "adam.plugins"}, + {import = "adam.plugins.lsp"} +}) diff --git a/nvim/lua/adam/plugins/base16-nvim.lua b/nvim/lua/adam/plugins/base16-nvim.lua new file mode 100644 index 0000000..2059b47 --- /dev/null +++ b/nvim/lua/adam/plugins/base16-nvim.lua @@ -0,0 +1,21 @@ +return { + "RRethy/base16-nvim", + lazy = false, + priority = 1000, + config = function() + require('base16-colorscheme').with_config({ + -- the base16 telescope plugin currently causes ui bugs + telescope = false + }) + + vim.cmd('colorscheme base16-gruvbox-dark-hard') + vim.o.background = 'dark' + + local bools = vim.api.nvim_get_hl(0, {name = 'Boolean' }) + vim.api.nvim_set_hl(0, 'Comment', bools) + + local marked = vim.api.nvim_get_hl(0, { name = 'PMenu' }) + vim.api.nvim_set_hl(0, 'LspSignatureActiveParameter', { fg = marked.fg, bg = marked.bg, ctermfg = marked.ctermfg, ctermbg = marked.ctermbg, bold = true }) + end +} + diff --git a/nvim/lua/adam/plugins/bufferline.lua b/nvim/lua/adam/plugins/bufferline.lua new file mode 100644 index 0000000..01a61df --- /dev/null +++ b/nvim/lua/adam/plugins/bufferline.lua @@ -0,0 +1,11 @@ +return { + "akinsho/bufferline.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + version = "*", + opts = { -- require(bufferline).setup(opts) + options = { + mode = "tabs", + separator_style = "slant", + }, + }, +} diff --git a/nvim/lua/adam/plugins/colorscheme.lua b/nvim/lua/adam/plugins/colorscheme.lua new file mode 100644 index 0000000..fc652b7 --- /dev/null +++ b/nvim/lua/adam/plugins/colorscheme.lua @@ -0,0 +1,8 @@ +return { + "bluz71/vim-nightfly-guicolors", + enabled = false, + priority = 1000, + config = function() + vim.cmd([[colorscheme nightfly]]) + end, +} diff --git a/nvim/lua/adam/plugins/comment.lua b/nvim/lua/adam/plugins/comment.lua new file mode 100644 index 0000000..29f0a0e --- /dev/null +++ b/nvim/lua/adam/plugins/comment.lua @@ -0,0 +1,5 @@ +return { + "numToStr/Comment.nvim", + event = { "BufReadPre", "BufNewFile" }, -- load on these events + config = true +} diff --git a/nvim/lua/adam/plugins/dressing.lua b/nvim/lua/adam/plugins/dressing.lua new file mode 100644 index 0000000..32df64b --- /dev/null +++ b/nvim/lua/adam/plugins/dressing.lua @@ -0,0 +1,4 @@ +return { + "stevearc/dressing.nvim", + event = "VeryLazy", +} diff --git a/nvim/lua/adam/plugins/init.lua b/nvim/lua/adam/plugins/init.lua new file mode 100644 index 0000000..927a81e --- /dev/null +++ b/nvim/lua/adam/plugins/init.lua @@ -0,0 +1,3 @@ +return { + "christoomey/vim-tmux-navigator" +} diff --git a/nvim/lua/adam/plugins/lsp/lspconfig.lua b/nvim/lua/adam/plugins/lsp/lspconfig.lua new file mode 100644 index 0000000..d416232 --- /dev/null +++ b/nvim/lua/adam/plugins/lsp/lspconfig.lua @@ -0,0 +1,106 @@ +return { + "neovim/nvim-lspconfig", + event = { "BufReadPre", "BufNewFile" }, + dependencies = { + "hrsh7th/cmp-nvim-lsp", + }, + config = function() + local lspconfig = require("lspconfig") + local cmp_nvim_lsp = require("cmp_nvim_lsp") + + local keymap = vim.keymap + + local opts = { noremap = true, silent = true } + local on_attach = function(client, bufnr) + opts.buffer = bufnr + + opts.desc = "Show LSP references" + keymap.set("n", "gR", "Telescope lsp_references", opts) -- show definition, references + + opts.desc = "Go to declaration" + keymap.set("n", "gD", vim.lsp.buf.declaration, opts) -- go to declaration + + opts.desc = "Show LSP definitions" + keymap.set("n", "gd", "Telescope lsp_definitions", opts) -- show lsp definitions + + opts.desc = "Show LSP implementations" + keymap.set("n", "gi", "Telescope lsp_implementations", opts) -- show lsp implementations + + opts.desc = "Show LSP type definitions" + keymap.set("n", "gt", "Telescope lsp_type_definitions", opts) -- show lsp type definitions + + opts.desc = "See available code actions" + keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, opts) -- see available code actions, in visual mode will apply to selection + + opts.desc = "Smart rename" + keymap.set("n", "rn", vim.lsp.buf.rename, opts) -- smart rename + + opts.desc = "Show buffer diagnostics" + keymap.set("n", "D", "Telescope diagnostics bufnr=0", opts) -- show diagnostics for file + + opts.desc = "Show line diagnostics" + keymap.set("n", "d", vim.diagnostic.open_float, opts) -- show diagnostics for line + + opts.desc = "Go to previous diagnostic" + keymap.set("n", "[d", vim.diagnostic.goto_prev, opts) -- jump to previous diagnostic in buffer + + opts.desc = "Go to next diagnostic" + keymap.set("n", "]d", vim.diagnostic.goto_next, opts) -- jump to next diagnostic in buffer + + opts.desc = "Show documentation for what is under cursor" + keymap.set("n", "K", vim.lsp.buf.hover, opts) -- show documentation for what is under cursor + + opts.desc = "Restart LSP" + keymap.set("n", "rs", ":LspRestart", opts) -- mapping to restart lsp if necessary + + client.server_capabilities.semanticTokensProvider = nil + end + + local capabilities = cmp_nvim_lsp.default_capabilities() + + local signs = { Error = " ", Warn = " ", Hint = "󰠠 ", Info = " " } + for type, icon in pairs(signs) do + local hl = "DiagnosticSign" .. type + vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) + end + + lspconfig["elixirls"].setup({ + capabilities = capabilities, + on_attach = on_attach, + cmd = { "/home/adam/.elixirls/language_server.sh" } + }) + + lspconfig["rust_analyzer"].setup({ + capabilities = capabilities, + on_attach = on_attach, + }) + + lspconfig["pyright"].setup({ + capabilities = capabilities, + on_attach = on_attach, + }) + + lspconfig["lua_ls"].setup({ + capabilities = capabilities, + on_attach = on_attach, + settings = { + Lua = { + diagnostics = { + globals = { "vim" }, + }, + workspace = { + library = { + [vim.fn.expand("$VIMRUNTIME/lua")] = true, + [vim.fn.stdpath("config") .. "/lua"] = true, + }, + }, + }, + }, + }) + + lspconfig["gopls"].setup({ + capabilities = capabilities, + on_attach = on_attach, + }) + end, +} diff --git a/nvim/lua/adam/plugins/lsp/mason.lua b/nvim/lua/adam/plugins/lsp/mason.lua new file mode 100644 index 0000000..3399791 --- /dev/null +++ b/nvim/lua/adam/plugins/lsp/mason.lua @@ -0,0 +1,34 @@ +return { + "williamboman/mason.nvim", + dependencies = { + "williamboman/mason-lspconfig.nvim", + }, + config = function() + -- import mason + local mason = require("mason") + + -- import mason-lspconfig + local mason_lspconfig = require("mason-lspconfig") + + mason.setup({ + ui = { + icons = { + package_installed = "✓", + package_pending = "➜", + package_uninstalled = "✗", + } + } + }) + + mason_lspconfig.setup({ + ensure_installed = { + "elixirls", + "rust_analyzer", + "lua_ls", + "pyright", + "gopls", + }, + automatic_installation = true, + }) + end +} diff --git a/nvim/lua/adam/plugins/lualine.lua b/nvim/lua/adam/plugins/lualine.lua new file mode 100644 index 0000000..fa9f82b --- /dev/null +++ b/nvim/lua/adam/plugins/lualine.lua @@ -0,0 +1,71 @@ +return { + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + config = function() + local lualine = require("lualine") + local lazy_status = require("lazy.status") + + local colors = { + blue = "#65D1FF", + green = "#3EFFDC", + violet = "#FF61EF", + yellow = "#FFDA7B", + red = "#FF4A4A", + fg = "#C3CCDC", + bg = "#112638", + inactive_bg = "#2C3043" + } + + local my_lualine_theme = { + normal = { + a = { bg = colors.blue, fg = colors.bg, gui = "bold" }, + b = { bg = colors.bg, fg = colors.fg }, + c = { bg = colors.bg, fg = colors.fg }, + }, + insert = { + a = { bg = colors.green, fg = colors.bg, gui = "bold" }, + b = { bg = colors.bg, fg = colors.fg }, + c = { bg = colors.bg, fg = colors.fg }, + }, + visual = { + a = { bg = colors.violet, fg = colors.bg, gui = "bold" }, + b = { bg = colors.bg, fg = colors.fg }, + c = { bg = colors.bg, fg = colors.fg }, + }, + command = { + a = { bg = colors.yellow, fg = colors.bg, gui = "bold" }, + b = { bg = colors.bg, fg = colors.fg }, + c = { bg = colors.bg, fg = colors.fg }, + }, + replace = { + a = { bg = colors.red, fg = colors.bg, gui = "bold" }, + b = { bg = colors.bg, fg = colors.fg }, + c = { bg = colors.bg, fg = colors.fg }, + }, + inactive = { + a = { bg = colors.inactive_bg, fg = colors.semilightgray, gui = "bold" }, + b = { bg = colors.inactive_bg, fg = colors.semilightgray }, + c = { bg = colors.inactive_bg, fg = colors.semilightgray }, + }, + } + + -- configure lualine with modified theme + lualine.setup({ + options = { + theme = 'base16', + }, + sections = { + lualine_x = { + { + lazy_status.updates, + cond = lazy_status.has_updates, + color = { fg = "#ff9e64" }, + }, + { "encoding" }, + { "fileformat" }, + { "filetype" }, + }, + }, + }) + end, + } diff --git a/nvim/lua/adam/plugins/neotest.lua b/nvim/lua/adam/plugins/neotest.lua new file mode 100644 index 0000000..df5c764 --- /dev/null +++ b/nvim/lua/adam/plugins/neotest.lua @@ -0,0 +1,23 @@ +return { + "nvim-neotest/neotest", + dependencies = { + "nvim-lua/plenary.nvim", + "antoinemadec/FixCursorHold.nvim", + "jfpedroza/neotest-elixir", + "nvim-neotest/neotest-go" + }, + config = function() + local neotest = require("neotest") + neotest.setup({ + adapters = { + require("neotest-elixir"), + require("neotest-go"), + } + }) + + local keymap = vim.keymap + keymap.set("n", "tf", ":lua require('neotest').run.run(vim.fn.expand('%'))") + keymap.set("n", "tn", ":lua require('neotest').run.run()") + keymap.set("n", "tt", ":lua require('neotest').summary.toggle()") + end, +} diff --git a/nvim/lua/adam/plugins/nvim-cmp.lua b/nvim/lua/adam/plugins/nvim-cmp.lua new file mode 100644 index 0000000..b7ba997 --- /dev/null +++ b/nvim/lua/adam/plugins/nvim-cmp.lua @@ -0,0 +1,51 @@ +return { + "hrsh7th/nvim-cmp", + event = "InsertEnter", -- load on specific vim event + dependencies = { + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "L3MON4D3/LuaSnip", + "saadparwaiz1/cmp_luasnip", + "rafamadriz/friendly-snippets", + "onsails/lspkind.nvim" + }, + config = function() + local cmp = require("cmp") + local luasnip = require("luasnip") + local lspkind = require("lspkind") + + require("luasnip.loaders.from_vscode").lazy_load() + + cmp.setup({ + completion = { + completeopt = "menu,menuone,preview,noselect", + }, + snippet = { + expand = function(args) + luasnip.lsp_expand(args.body) + end, + }, + mapping = cmp.mapping.preset.insert({ + [""] = cmp.mapping.select_prev_item(), + [""] = cmp.mapping.select_next_item(), + [""] = cmp.mapping.scroll_docs(-4), + [""] = cmp.mapping.scroll_docs(4), + [""] = cmp.mapping.complete(), + [""] = cmp.mapping.abort(), + [""] = cmp.mapping.confirm( { select = false }), + }), + sources = cmp.config.sources({ + { name = "nvim_lsp" }, + { name = "luasnip" }, + { name = "buffer" }, + { name = "path" }, + }), + formatting = { + format = lspkind.cmp_format({ + maxwidth = 50, + ellipsis_char = "...", + }), + }, + }) + end, +} diff --git a/nvim/lua/adam/plugins/nvim-tree.lua b/nvim/lua/adam/plugins/nvim-tree.lua new file mode 100644 index 0000000..00ac637 --- /dev/null +++ b/nvim/lua/adam/plugins/nvim-tree.lua @@ -0,0 +1,48 @@ +return { + "nvim-tree/nvim-tree.lua", + dependencies = { + "nvim-tree/nvim-web-devicons" + }, + config = function() + local nvimtree = require("nvim-tree") + + vim.g.loaded = 1 + vim.g.loaded_netrwPlugin = 1 + + vim.cmd([[ highlight NvimTreeFolderArrowClosed guifg=#3FC5FF ]]) + vim.cmd([[ highlight NvimTreeFolderArrowOpen guifg=#3FC5FF ]]) + + nvimtree.setup({ + view = { + width = 35, + relativenumber = true, + }, + renderer = { + indent_markers = { + enable = true, + }, + icons = { + glyphs = { + folder = { + arrow_closed = "", -- arrow when folder is closed + arrow_open = "", -- arrow when folder is open + }, + }, + }, + }, + actions = { + open_file = { + window_picker = { + enable = false, + }, + }, + }, + filters = { + custom = { ".DS_Store" }, + }, + git = { + ignore = false, + }, + }) + end, +} diff --git a/nvim/lua/adam/plugins/nvim-treesitter.lua b/nvim/lua/adam/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..ec5db00 --- /dev/null +++ b/nvim/lua/adam/plugins/nvim-treesitter.lua @@ -0,0 +1,30 @@ +return { + "nvim-treesitter/nvim-treesitter", + event = { "BufReadPre", "BufNewFile" }, + -- enabled = false, + config = function() + local treesitter = require("nvim-treesitter.configs") + + treesitter.setup({ + highlight = { + enable = true, + disable = { "rust" }, + }, + indent = { + enable = true, + }, + ensure_installed = { + "elixir", + "rust", + "dockerfile", + "lua", + "json", + "python", + "java", + "go" + }, + auto_install = true + }) + end, +} + diff --git a/nvim/lua/adam/plugins/rust-vim.lua b/nvim/lua/adam/plugins/rust-vim.lua new file mode 100644 index 0000000..b7cc5b3 --- /dev/null +++ b/nvim/lua/adam/plugins/rust-vim.lua @@ -0,0 +1,7 @@ +return { + "rust-lang/rust.vim", + ft = { "rust" }, + config = function() + vim.g.rustfmt_autosave = 1 + end +} diff --git a/nvim/lua/adam/plugins/telescope.lua b/nvim/lua/adam/plugins/telescope.lua new file mode 100644 index 0000000..3e7563b --- /dev/null +++ b/nvim/lua/adam/plugins/telescope.lua @@ -0,0 +1,34 @@ +return { + "nvim-telescope/telescope.nvim", + branch = "0.1.x", + dependencies = { + "nvim-lua/plenary.nvim", + { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, + "nvim-tree/nvim-web-devicons", + }, + config = function() + local telescope = require("telescope") + local actions = require("telescope.actions") + + telescope.setup({ + defaults = { + mappings = { + i = { + [""] = actions.move_selection_previous, + [""] = actions.move_selection_next, + [""] = actions.send_selected_to_qflist + actions.open_qflist, + } + } + } + }) + + telescope.load_extension("fzf"); + + local keymap = vim.keymap + keymap.set("n", "ff", "Telescope find_files", { desc = "File fuzzy search" }) + keymap.set("n", "fg", "Telescope live_grep", { desc = "Live grep" }) + keymap.set("n", "fc", "Telescope grep_string", { desc = "Grep string" }) + keymap.set("n", "fb", "Telescope buffers") + keymap.set("n", "fh", "Telescope help_tags") + end +} diff --git a/nvim/lua/adam/plugins/vim-maximizer.lua b/nvim/lua/adam/plugins/vim-maximizer.lua new file mode 100644 index 0000000..57d20e9 --- /dev/null +++ b/nvim/lua/adam/plugins/vim-maximizer.lua @@ -0,0 +1,6 @@ +return { + "szw/vim-maximizer", + keys = { + { "sm", "MaximizerToggle" } -- load and execute command on keypress + } +} diff --git a/nvim/lua/adam/plugins/which-key-nvim.lua b/nvim/lua/adam/plugins/which-key-nvim.lua new file mode 100644 index 0000000..cabb100 --- /dev/null +++ b/nvim/lua/adam/plugins/which-key-nvim.lua @@ -0,0 +1,11 @@ +return { + "folke/which-key.nvim", + event = "VeryLazy", + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, + opts = { + + } +} diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..5e0f7e2 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,36 @@ +set -g default-terminal "screen-256color" + +set-option -g default-shell /usr/bin/fish + +set -g prefix C-a +unbind C-b +bind-key C-a send-prefix + +unbind % +bind | split-window -h + +unbind '"' +bind - split-window -v + +unbind r +bind r source-file ~/.tmux.conf + +bind -r j resize-pane -D 5 +bind -r k resize-pane -U 5 +bind -r l resize-pane -R 5 +bind -r h resize-pane -L 5 + +bind -r m resize-pane -Z +set -g mouse on + +set -g @plugin 'tmux-plugins/tpm' + +set -g @plugin 'christoomey/vim-tmux-navigator' +# set -g @plugin 'jimeh/tmux-themepack' +# set -g @themepack 'powerline/default/cyan' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' + +source-file $HOME/.tmux/colors/base16-gruvbox-dark-hard.conf + +run '~/.tmux/plugins/tpm/tpm' diff --git a/tmux/.tmux/colors/base16-gruvbox-dark-hard.conf b/tmux/.tmux/colors/base16-gruvbox-dark-hard.conf new file mode 100644 index 0000000..566fb3b --- /dev/null +++ b/tmux/.tmux/colors/base16-gruvbox-dark-hard.conf @@ -0,0 +1,61 @@ +# Base16 Gruvbox dark, hard +# Scheme author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) +# Template author: Tinted Theming: (https://github.com/tinted-theming) + +# default statusbar colors +set-option -g status-style "fg=#bdae93,bg=#3c3836" + +# default window title colors +set-window-option -g window-status-style "fg=#bdae93,bg=#3c3836" + +# active window title colors +set-window-option -g window-status-current-style "fg=#fabd2f,bg=#3c3836" + +# pane border +set-option -g pane-border-style "fg=#3c3836" +set-option -g pane-active-border-style "fg=#bdae93" + +# message text +set-option -g message-style "fg=#ebdbb2,bg=#504945" + +# pane number display +set-option -g display-panes-active-colour "#bdae93" +set-option -g display-panes-colour "#3c3836" + +# clock +set-window-option -g clock-mode-colour "#83a598" + +# copy mode highlight +set-window-option -g mode-style "fg=#bdae93,bg=#504945" + +# bell +set-window-option -g window-status-bell-style "fg=#1d2021,bg=#fb4934" + +# style for window titles with activity +set-window-option -g window-status-activity-style "fg=#d5c4a1,bg=#3c3836" + +# style for command messages +set-option -g message-command-style "fg=#ebdbb2,bg=#504945" + +# Optional active/inactive pane state +if-shell '[ "$BASE16_TMUX_OPTION_ACTIVE" = "1" ]' { + set-window-option -g window-active-style "fg=#d5c4a1,bg=#1d2021" + set-window-option -g window-style "fg=#d5c4a1,bg=#3c3836" +} + +# Optional statusbar +if-shell '[ "$BASE16_TMUX_OPTION_STATUSBAR" = "1" ]' { + set-option -g status "on" + set-option -g status-justify "left" + set-option -g status-left "#[fg=#d5c4a1,bg=#665c54] #S #[fg=#665c54,bg=#3c3836,nobold,noitalics,nounderscore]" + set-option -g status-left-length "80" + set-option -g status-left-style none + set-option -g status-right "#[fg=#504945,bg=#3c3836 nobold, nounderscore, noitalics]#[fg=#bdae93,bg=#504945] %Y-%m-%d  %H:%M #[fg=#d5c4a1,bg=#504945,nobold,noitalics,nounderscore]#[fg=#3c3836,bg=#d5c4a1] #h " + set-option -g status-right-length "80" + set-option -g status-right-style none + set-window-option -g window-status-current-format "#[fg=#3c3836,bg=#fabd2f,nobold,noitalics,nounderscore]#[fg=#504945,bg=#fabd2f] #I #[fg=#504945,bg=#fabd2f,bold] #W# #[fg=#fabd2f,bg=#3c3836,nobold,noitalics,nounderscore]" + set-window-option -g window-status-format "#[fg=#3c3836,bg=#504945,noitalics]#[fg=#ebdbb2,bg=#504945] #I #[fg=#ebdbb2,bg=#504945] #W #[fg=#504945,bg=#3c3836,noitalics]" + set-window-option -g window-status-separator "" +} + +# vim: set ft=tmux tw=0: